00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 $eZTemplateOperatorArray = array();
00035
00036 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezurloperator.php',
00037 'class' => 'eZURLOperator',
00038 'operator_names' => array( 'ezurl', 'ezroot', 'ezdesign', 'ezimage', 'exturl',
00039 'ezsys', 'ezhttp', 'ezhttp_hasvariable', 'ezini', 'ezini_hasvariable' ) );
00040 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezi18noperator.php',
00041 'class' => 'eZI18NOperator',
00042 'operator_names' => array( 'i18n', 'x18n' ) );
00043
00044 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezalphabetoperator.php',
00045 'class' => 'eZAlphabetOperator',
00046 'operator_names' => array( 'alphabet' ) );
00047
00048 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezdateoperatorcollection.php',
00049 'class' => 'eZDateOperatorCollection',
00050 'operator_names' => array( 'month_overview' ) );
00051
00052 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezautolinkoperator.php',
00053 'class' => 'eZAutoLinkOperator',
00054 'operator_names' => array( 'autolink' ) );
00055
00056 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezsimpletagsoperator.php',
00057 'class' => 'eZSimpleTagsOperator',
00058 'operator_names' => array( 'simpletags' ) );
00059
00060 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/eztreemenuoperator.php',
00061 'class' => 'eZTreeMenuOperator',
00062 'operator_names' => array( 'treemenu' ) );
00063
00064 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezcontentstructuretreeoperator.php',
00065 'class' => 'eZContentStructureTreeOperator',
00066 'operator_names' => array( 'content_structure_tree' ) );
00067
00068 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezwordtoimageoperator.php',
00069 'class' => 'eZWordToImageOperator',
00070 'operator_names' => array( 'wordtoimage',
00071 'mimetype_icon', 'class_icon', 'classgroup_icon', 'action_icon', 'icon',
00072 'flag_icon', 'icon_info' ) );
00073
00074 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezkerneloperator.php',
00075 'class' => 'eZKernelOperator',
00076 'operator_names' => array( 'ezpreference' ) );
00077
00078
00079 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatephpoperator.php',
00080 'function' => 'eZPHPOperatorInit',
00081 'operator_names_function' => 'eZPHPOperatorNameInit' );
00082 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezmoduleparamsoperator.php',
00083 'class' => 'eZModuleParamsOperator',
00084 'operator_names' => array( 'module_params' ) );
00085
00086 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/eztopmenuoperator.php',
00087 'class' => 'eZTopMenuOperator',
00088 'operator_names' => array( 'topmenu' ) );
00089
00090 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezpackageoperator.php',
00091 'class' => 'eZPackageOperator',
00092 'operator_names' => array( 'ezpackage' ) );
00093
00094 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/eztocoperator.php',
00095 'class' => 'eZTOCOperator',
00096 'operator_names' => array( 'eztoc' ) );
00097
00098 $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezmoduleoperator.php',
00099 'class' => 'eZModuleOperator',
00100 'operator_names' => array( 'ezmodule' ) );
00101
00102
00103
00104 $eZTemplateFunctionArray = array();
00105 $eZTemplateFunctionArray[] = array( 'function' => 'eZObjectForwardInit',
00106 'function_names' => array( 'attribute_edit_gui',
00107 'attribute_view_gui',
00108 'attribute_result_gui',
00109 'attribute_pdf_gui',
00110 'attribute_diff_gui',
00111 'related_view_gui',
00112 'node_view_gui',
00113 'content_view_gui',
00114 'content_pdf_gui',
00115 'shop_account_view_gui',
00116 'content_version_view_gui',
00117 'collaboration_view_gui',
00118 'collaboration_icon',
00119 'collaboration_simple_message_view',
00120 'collaboration_participation_view',
00121 'event_edit_gui',
00122 'event_view_gui',
00123 'class_attribute_view_gui',
00124 'class_attribute_edit_gui' ) );
00125
00126 if ( !function_exists( 'eZPHPOperatorInit' ) )
00127 {
00128 function &eZPHPOperatorInit()
00129 {
00130 include_once( 'lib/eztemplate/classes/eztemplatephpoperator.php' );
00131 $ini =& eZINI::instance( 'template.ini' );
00132 $operatorList = $ini->variable( 'PHP', 'PHPOperatorList' );
00133 $templatePHPOperator = new eZTemplatePHPOperator( $operatorList );
00134 return $templatePHPOperator;
00135 }
00136 }
00137
00138 if ( !function_exists( 'eZPHPOperatorNameInit' ) )
00139 {
00140 function eZPHPOperatorNameInit()
00141 {
00142 $ini =& eZINI::instance( 'template.ini' );
00143 $operatorList = $ini->variable( 'PHP', 'PHPOperatorList' );
00144 return array_keys( $operatorList );
00145 }
00146 }
00147
00148 if ( !function_exists( 'eZObjectForwardInit' ) )
00149 {
00150 function eZObjectForwardInit()
00151 {
00152 include_once( 'kernel/common/ezobjectforwarder.php' );
00153 $forward_rules = array(
00154 'attribute_edit_gui' => array( 'template_root' => 'content/datatype/edit',
00155 'input_name' => 'attribute',
00156 'output_name' => 'attribute',
00157 'namespace' => 'ContentAttribute',
00158 'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ),
00159 'attribute' => array( 'contentclassattribute_id' ),
00160 'class_identifier' => array( 'object', 'class_identifier' ),
00161 'class' => array( 'object', 'contentclass_id' ) ),
00162 'attribute_access' => array( array( 'edit_template' ) ),
00163 'use_views' => false ),
00164
00165 'attribute_pdf_gui' => array( 'template_root' => 'content/datatype/pdf',
00166 'input_name' => 'attribute',
00167 'output_name' => 'attribute',
00168 'namespace' => 'ContentAttribute',
00169 'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ),
00170 'attribute' => array( 'contentclassattribute_id' ),
00171 'class_identifier' => array( 'object', 'class_identifier' ),
00172 'class' => array( 'object', 'contentclass_id' ) ),
00173 'attribute_access' => array( array( 'view_template' ) ),
00174 'use_views' => false ),
00175
00176 'attribute_view_gui' => array( 'template_root' => array( 'type' => 'multi_match',
00177 'attributes' => array( 'is_information_collector' ),
00178 'matches' => array( array( false,
00179 'content/datatype/view' ),
00180 array( true,
00181 'content/datatype/collect' ) ) ),
00182 'render_mode' => false,
00183 'input_name' => 'attribute',
00184 'output_name' => 'attribute',
00185 'namespace' => 'ContentAttribute',
00186 'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ),
00187 'attribute' => array( 'contentclassattribute_id' ),
00188 'class_identifier' => array( 'object', 'class_identifier' ),
00189 'class' => array( 'object', 'contentclass_id' ) ),
00190 'attribute_access' => array( array( 'view_template' ) ),
00191 'optional_views' => true,
00192 'use_views' => 'view' ),
00193
00194 'attribute_diff_gui' => array( 'template_root' => 'content/datatype/diff',
00195 'input_name' => 'attribute',
00196 'output_name' => 'attribute',
00197 'namespace' => 'ContentAttribute',
00198 'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ),
00199 'attribute' => array( 'contentclassattribute_id' ),
00200 'class_identifier' => array( 'object', 'class_identifier' ),
00201 'class' => array( 'object', 'contentclass_id' ) ), 'attribute_access' => array( array( 'view_template' ) ),
00202 'attribute_access' => array( array( 'view_template' ) ),
00203 'use_views' => false ),
00204
00205 'attribute_result_gui' => array( 'template_root' => 'content/datatype/result',
00206 'render_mode' => false,
00207 'input_name' => 'attribute',
00208 'output_name' => 'attribute',
00209 'namespace' => 'CollectionAttribute',
00210 'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ),
00211 'attribute' => array( 'contentclassattribute_id' ),
00212 'class_identifier' => array( 'object', 'class_identifier' ),
00213 'class' => array( 'object', 'contentclass_id' ) ),
00214 'attribute_access' => array( array( 'result_template' ) ),
00215 'optional_views' => true,
00216 'use_views' => 'view' ),
00217
00218 'related_view_gui' => array( 'template_root' => 'content/related',
00219 'input_name' => 'related_object',
00220 'output_name' => 'related_object',
00221 'namespace' => 'RelatedView',
00222 'attribute_keys' => array( 'object' => array( 'id' ),
00223 'class' => array( 'class_id' ),
00224 'section' => array( 'section_id' ),
00225 'class_identifier' => array( 'class_identifier' ) ),
00226 'attribute_access' => array(),
00227 'use_views' => 'view' ),
00228
00229 'shop_account_view_gui' => array( 'template_root' => "shop/accounthandlers",
00230 'input_name' => 'order',
00231 'output_name' => 'order',
00232 'namespace' => 'ShopAccount',
00233 'attribute_access' => array( array( 'account_view_template' ) ),
00234 'use_views' => 'view' ),
00235
00236 'content_view_gui' => array( 'template_root' => 'content/view',
00237 'input_name' => 'content_object',
00238 'output_name' => 'object',
00239 'namespace' => 'ContentView',
00240 'attribute_keys' => array( 'object' => array( 'id' ),
00241 'class_group' => array( 'match_ingroup_id_list' ),
00242 'class' => array( 'contentclass_id' ),
00243 'section' => array( 'section_id' ),
00244 'class_identifier' => array( 'class_identifier' ) ),
00245 'attribute_access' => array(),
00246 'use_views' => 'view' ),
00247
00248
00249 'content_pdf_gui' => array( 'template_root' => 'content/pdf',
00250 'input_name' => 'content_object',
00251 'output_name' => 'object',
00252 'namespace' => 'ContentView',
00253 'attribute_keys' => array( 'object' => array( 'id' ),
00254 'class' => array( 'contentclass_id' ),
00255 'section' => array( 'section_id' ),
00256 'class_identifier' => array( 'class_identifier' ) ),
00257 'attribute_access' => array(),
00258 'use_views' => 'view' ),
00259
00260 'content_version_view_gui' => array( 'template_root' => 'content/version/view',
00261 'input_name' => 'content_version',
00262 'output_name' => 'version',
00263 'namespace' => 'VersionView',
00264 'attribute_keys' => array( 'object' => array( 'contentobject_id' ),
00265 'class' => array( 'contentobject', 'contentclass_id' ),
00266 'section' => array( 'contentobject', 'section_id' ),
00267 'class_identifier' => array( 'contentobject', 'class_identifier' ) ),
00268 'attribute_access' => array(),
00269 'use_views' => 'view' ),
00270
00271 'node_view_gui' => array( 'template_root' => 'node/view',
00272 'input_name' => 'content_node',
00273 'output_name' => 'node',
00274 'namespace' => 'NodeView',
00275 'constant_template_variables' => array( 'view_parameters' => array( 'offset' => 0 ) ),
00276 'attribute_keys' => array( 'node' => array( 'node_id' ),
00277 'object' => array( 'contentobject_id' ),
00278 'class' => array( 'object', 'contentclass_id' ),
00279 'section' => array( 'object', 'section_id' ),
00280 'class_identifier' => array( 'object', 'class_identifier' ),
00281 'class_group' => array( 'object','match_ingroup_id_list' ),
00282 'parent_node' => array( 'parent_node_id' ),
00283 'depth' => array( 'depth' ),
00284 'url_alias' => array( 'url_alias' ) ),
00285 'attribute_access' => array(),
00286 'use_views' => 'view' ),
00287
00288 'collaboration_view_gui' => array( 'template_root' => 'collaboration/handlers/view',
00289 'input_name' => 'collaboration_item',
00290 'output_name' => 'item',
00291 'namespace' => 'Collaboration',
00292 'attribute_keys' => array(),
00293 'attribute_access' => array( array( 'type_identifier' ) ),
00294 'use_views' => 'view' ),
00295
00296 'collaboration_icon' => array( 'template_root' => 'collaboration/handlers/icon',
00297 'input_name' => 'collaboration_item',
00298 'output_name' => 'item',
00299 'namespace' => 'Collaboration',
00300 'attribute_keys' => array(),
00301 'attribute_access' => array( array( 'type_identifier' ) ),
00302 'use_views' => 'view' ),
00303
00304 'collaboration_simple_message_view' => array( 'template_root' => 'collaboration/message/view',
00305 'input_name' => 'collaboration_message',
00306 'output_name' => 'item',
00307 'namespace' => 'CollaborationMessage',
00308 'attribute_keys' => array(),
00309 'attribute_access' => array( array( 'message_type' ) ),
00310 'use_views' => 'view' ),
00311
00312 'collaboration_participation_view' => array( 'template_root' => array( 'type' => 'multi_match',
00313 'attributes' => array( 'is_builtin_type' ),
00314 'matches' => array( array( true,
00315 'collaboration/participation/view' ),
00316 array( false,
00317 array( 'collaboration/participation/view/custom',
00318 array( array( 'participant_type_string' ) ) ) ) ) ),
00319 'input_name' => 'collaboration_participant',
00320 'output_name' => 'item',
00321 'namespace' => 'CollaborationParticipant',
00322 'attribute_keys' => array(),
00323 'attribute_access' => array( array( 'participant_type_string' ) ),
00324 'use_views' => 'view' ),
00325
00326 'event_edit_gui' => array( 'template_root' => 'workflow/eventtype/edit',
00327 'input_name' => 'event',
00328 'output_name' => 'event',
00329 'namespace' => 'WorkflowEvent',
00330 'attribute_access' => array( array( 'workflow_type_string' ) ),
00331 'use_views' => false ),
00332
00333 'event_view_gui' => array( 'template_root' => 'workflow/eventtype/view',
00334 'input_name' => 'event',
00335 'output_name' => 'event',
00336 'namespace' => 'WorkflowEvent',
00337 'attribute_access' => array( array( 'workflow_type_string' ) ),
00338 'use_views' => false ),
00339
00340 'class_attribute_view_gui' => array( 'template_root' => 'class/datatype/view',
00341 'input_name' => 'class_attribute',
00342 'output_name' => 'class_attribute',
00343 'namespace' => 'ClassAttribute',
00344 'attribute_access' => array( array( 'data_type',
00345 'information',
00346 'string' ) ),
00347 'use_views' => false ),
00348
00349 'class_attribute_edit_gui' => array( 'template_root' => 'class/datatype/edit',
00350 'input_name' => 'class_attribute',
00351 'output_name' => 'class_attribute',
00352 'namespace' => 'ClassAttribute',
00353 'attribute_access' => array( array( 'data_type',
00354 'information',
00355 'string' ) ),
00356 'use_views' => false ) );
00357 return new eZObjectForwarder( $forward_rules );
00358 }
00359 }
00360
00361 ?>