Forums / Developer / Module functions & parameter_type

Module functions & parameter_type

Author Message

Bertrand Dunogier

Monday 22 August 2005 12:44:58 am

I've been working on a module which has functions, and I was wondering what the parameter_type key was for...

From kernel/content/function_definition.php:

$FunctionList['object'] = array(
  'name' => 'object',
   'operation_types' => array( 'read' ),
   'call_method' => array( 'include_file' => 'kernel/content/ezcontentfunctioncollection.php',
                           'class' => 'eZContentFunctionCollection',
                           'method' => 'fetchContentObject' ),
   'parameter_type' => 'standard',
   'parameters' => array( array( 'name' => 'object_id',
                                 'type' => 'integer',
                                 'required' => true ) ) 
);

I see that parameter_type key everywhere in function_definition.php all over ezpublish, but I don't see it USED anywhere ? Anyone has clues ?

What I actually would like is a way to pass an array of parameters instead of named parameters...

Thanks !