Changeset 2910

Show
Ignore:
Timestamp:
07/22/08 10:18:57 (1 month ago)
Author:
gcroes
Message:

Pour redémarrer tranquillement sur le module heading

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/project/modules/devel/cms3/heading_old/classes/headingcredentialhandler.class.php

    r1459 r2910  
    132132     */ 
    133133    public function assert ($pStringType, $pString, $pUser) { 
    134          
     134        return true; 
    135135        //_dump(compact('pStringType', 'pString')); 
    136136        if(($pStringType != 'heading') || !preg_match('/^(\w+\|\w+)(?:\|(\w+))?@(\d+)$/i', $pString, $parts)) { 
     
    194194             
    195195        } 
    196                  
    197196        // Teste le niveau 
    198197        return $this->_solveLevel($credentials) >= $requiredLevel; 
    199  
    200198    } 
    201  
    202  
    203199} 
    204  
    205 ?> 
  • trunk/project/modules/devel/cms3/heading_old/classes/headingservices.class.php

    r1244 r2910  
    157157     */ 
    158158    static public function find($pCriteria) { 
    159         $heading = reset(self::findList($pCriteria)); 
     159        $heading = self::findList ($pCriteria); 
    160160        return $heading !== false ? $heading : null; 
    161161    } 
  • trunk/project/modules/devel/cms3/heading_old/classes/urlhandlerheading.class.php

    r1459 r2910  
    5757        _classInclude('heading|HeadingServices'); 
    5858        $heading = HeadingServices::find(array('public_id_hdg' => $parts[1])); 
    59         if(!$heading) { 
     59        if (! $heading) { 
    6060            return false; 
    6161        } 
    62         $headingId = $heading->getId(); 
     62         
     63        list ($headingKey, $headingObject) = each ($heading); 
     64        $headingId = $headingObject->getId(); 
    6365        return compact('module', 'group', 'action', 'headingId'); 
    6466    }