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 !

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 11:04:33
Script start
Timing: Jan 19 2025 11:04:33
Module start 'layout'
Timing: Jan 19 2025 11:04:33
Module start 'content'
Timing: Jan 19 2025 11:04:34
Module end 'content'
Timing: Jan 19 2025 11:04:34
Script end

Main resources:

Total runtime1.3050 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1563152.6250
Module start 'layout' 0.00530.0033 741.781339.4453
Module start 'content' 0.00861.2946 781.2266401.1641
Module end 'content' 1.30330.0016 1,182.39068.1563
Script end 1.3049  1,190.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2512160.0002
Check MTime0.00140.1058160.0001
Mysql Total
Database connection0.00070.050410.0007
Mysqli_queries1.267997.1595460.0276
Looping result0.00050.0363440.0000
Template Total1.267597.120.6337
Template load0.00190.146920.0010
Template processing1.265596.979220.6328
Template load and register function0.00020.017210.0002
states
state_id_array0.00170.128510.0017
state_identifier_array0.00480.370720.0024
Override
Cache load0.00150.116190.0002
Sytem overhead
Fetch class attribute can translate value0.00180.137410.0018
Fetch class attribute name0.00070.056910.0007
XML
Image XML parsing0.00010.010510.0001
class_abstraction
Instantiating content class attribute0.00000.001510.0000
General
dbfile0.00170.1298100.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs