Changeset 4 for ez_publish/ezipb/trunk

Show
Ignore:
Timestamp:
09/02/07 19:43:48 (16 months ago)
Author:
llaumgui
Message:

Ticket #2: Opérateur pour récupérer la configuration IPB dans ez

Location:
ez_publish/ezipb/trunk/autoloads
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ez_publish/ezipb/trunk/autoloads/ezipb_operators.php

    r3 r4  
    5959                                                                        'ezipb_isadmin', 
    6060                                                                        'ezipb_member', 
    61                                                                         'ezipb_md5_check' ); 
     61                                                                        'ezipb_md5_check', 
     62                                                                        'ezipb_vars' ); 
    6263        } 
    6364                 
     
    8182                                                'ezipb_isadmin'                 => array(       'member_id' => array( 'type' => 'string', 'required' => false, 'default' => '' ) ), 
    8283                                                'ezipb_member'                  => array(       'index' => array( 'type' => 'string', 'required' => false, 'default' => '' ) ), 
    83                                                 'ezipb_md5_check'               => array() 
     84                                                'ezipb_md5_check'               => array(), 
     85                                                'ezipb_vars'                    => array(       'index' => array( 'type' => 'string', 'required' => false, 'default' => '' ) ), 
    8486                                        ); 
    8587        } 
     
    106108                case 'ezipb_md5_check': 
    107109                        $operatorValue = $this->ipsclass->return_md5_check(); 
     110                case 'ezipb_vars': 
     111                        $operatorValue = $this->ezipb_vars(  $namedParameters['index'] ); 
    108112                } 
    109113        } 
     
    122126        } 
    123127 
    124          
    125          
    126         /** 
    127          * Récupération des information sur le membre. 
    128          * 
    129          * @param String $index Index du tableau à récupérer 
    130          * @return mixed 
    131          */ 
    132         function ezipb_member ( $index ) { 
    133                  
    134                 //print_r( $this->ipsclass->member ); 
    135                  
    136                 if ( empty( $index ) ) 
    137                         return $this->ipsclass->member; 
    138                  
    139                 return $this->ipsclass->member[$index]; 
    140         } 
    141128         
    142129         
     
    168155         
    169156         
     157        /** 
     158         * Récupération des information sur le membre. 
     159         * 
     160         * @param String $index Index du tableau à récupérer 
     161         * @return mixed 
     162         */ 
     163        function ezipb_member ( $index ) { 
     164                 
     165                //print_r( $this->ipsclass->member ); 
     166                 
     167                if ( empty( $index ) ) 
     168                        return $this->ipsclass->member; 
     169                 
     170                return $this->ipsclass->member[$index]; 
     171        } 
     172         
     173         
     174         
     175        /** 
     176         * Récupération des variables IPB du fichier 
     177         * conf_global.php 
     178         * 
     179         * @param string $index  Index du tableau à récupérer 
     180         * @return mixed 
     181         */ 
     182        function ezipb_vars ( $index ) { 
     183                 
     184                if ( empty( $index ) ) 
     185                        return $this->ipsclass->vars; 
     186                 
     187                return $this->ipsclass->vars[$index]; 
     188        } 
     189         
     190 
    170191} // EOC 
    171192 
  • ez_publish/ezipb/trunk/autoloads/eztemplateautoload.php

    r3 r4  
    99                                                                                                                                        'ezipb_isadmin', 
    1010                                                                                                                                        'ezipb_member', 
    11                                                                                                                                         'ezipb_md5_check' ) 
     11                                                                                                                                        'ezipb_md5_check', 
     12                                                                                                                                        'ezipb_vars' ) 
    1213                                                                        ); 
    1314?>