Show
Ignore:
Timestamp:
06/26/08 12:19:04 (6 months ago)
Author:
llaumgui
Message:

Simplification

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ez_publish/ezfluxbb/trunk/modules/ezfluxbb/function_definition.php

    r194 r198  
    3232$FunctionList = array(); 
    3333 
    34 $FunctionList['current_user'] = array(  'name'                  => 'user', 
    35                                                                                 'operation_types'       => array( 'read' ), 
    36                                                                                 'call_method'           => array(       'include_file'          => 'extension/ezfluxbb/modules/ezfluxbb/currentuser.php', 
    37                                                                                                                                                         'class'                 => 'eZFluxBBCurrentUser', 
    38                                                                                         'method'                => 'fetch' 
    39                                                                                                                                                 ), 
    40                                                                                 'parameter_type'                => 'standard', 
    41                                                                                 'parameters'            => array(       array(  'name'     => 'sort_by', 
    42                                                                                                                                                                         'type'     => 'array', 
    43                                                                                                                                                                         'required' => false, 
    44                                                                                                                                                                         'default'  => array( 'last_post', false ) 
    45                                                                                               ), 
    46                                                                                         ) 
    47                                                                 ); 
     34$FunctionList['current_user']   = array( 
     35        'name'                  => 'current_user', 
     36        'operation_types'       => array( 'read' ), 
     37        'call_method'           => array( 
     38                'include_file'          => 'extension/ezfluxbb/classes/ezfluxbbfetchfonctions.php', 
     39                'class'                 => 'eZFluxBBFetchFonctions', 
     40                'method'                => 'fetchCurrentUser' 
     41        ), 
     42        'parameter_type'                => 'standard', 
     43        'parameters'            => array( ) 
     44); 
     45 
     46 
     47$FunctionList['topics']                 = array( 
     48        'topics'                                => 'current_user', 
     49        'operation_types'       => array( 'read' ), 
     50        'call_method'           => array( 
     51                        'include_file'          => 'extension/ezfluxbb/classes/ezfluxbbfetchfonctions.php', 
     52                        'class'                 => 'eZFluxBBFetchFonctions', 
     53                        'method'                => 'fetchTopics' 
     54        ), 
     55        'parameter_type'                => 'standard', 
     56        'parameters'            => array( 
     57                array(  'name'     => 'sort_by', 
     58                                'type'     => 'array', 
     59                                'required' => false, 
     60                                'default'  => array( 'last_post', false ) 
     61                ), 
     62                array(  'name'     => 'forum_id', 
     63                                'type'     => 'array', 
     64                                'required' => false, 
     65                                'default'  => array( 'last_post', false ) 
     66                ), 
     67        ) 
     68); 
    4869         
    4970 ?>