[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/common/ -> eztemplateautoload.php (source)

   1  <?php
   2  //
   3  // Created on: <05-Oct-2002 21:27:11 amos>
   4  //
   5  // SOFTWARE NAME: eZ publish
   6  // SOFTWARE RELEASE: 3.9.0
   7  // BUILD VERSION: 17785
   8  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
   9  // SOFTWARE LICENSE: GNU General Public License v2.0
  10  // NOTICE: >
  11  //   This program is free software; you can redistribute it and/or
  12  //   modify it under the terms of version 2.0  of the GNU General
  13  //   Public License as published by the Free Software Foundation.
  14  //
  15  //   This program is distributed in the hope that it will be useful,
  16  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  17  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18  //   GNU General Public License for more details.
  19  //
  20  //   You should have received a copy of version 2.0 of the GNU General
  21  //   Public License along with this program; if not, write to the Free
  22  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  23  //   MA 02110-1301, USA.
  24  //
  25  //
  26  
  27  /*! \file eztemplateautoload.php
  28  */
  29  
  30  // Operator autoloading
  31  
  32  $eZTemplateOperatorArray = array();
  33  
  34  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezurloperator.php',
  35                                      'class' => 'eZURLOperator',
  36                                      'operator_names' => array( 'ezurl', 'ezroot', 'ezdesign', 'ezimage', 'exturl',
  37                                                                 'ezsys', 'ezhttp', 'ezini' ) );
  38  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezi18noperator.php',
  39                                      'class' => 'eZI18NOperator',
  40                                      'operator_names' => array( 'i18n', 'x18n' ) );
  41  
  42  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezalphabetoperator.php',
  43                                      'class' => 'eZAlphabetOperator',
  44                                      'operator_names' => array( 'alphabet' ) );
  45  
  46  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezdateoperatorcollection.php',
  47                                      'class' => 'eZDateOperatorCollection',
  48                                      'operator_names' => array( 'month_overview' ) );
  49  
  50  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezautolinkoperator.php',
  51                                      'class' => 'eZAutoLinkOperator',
  52                                      'operator_names' => array( 'autolink' ) );
  53  
  54  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezsimpletagsoperator.php',
  55                                      'class' => 'eZSimpleTagsOperator',
  56                                      'operator_names' => array( 'simpletags' ) );
  57  
  58  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/eztreemenuoperator.php',
  59                                      'class' => 'eZTreeMenuOperator',
  60                                      'operator_names' => array( 'treemenu' ) );
  61  
  62  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezcontentstructuretreeoperator.php',
  63                                      'class' => 'eZContentStructureTreeOperator',
  64                                      'operator_names' => array( 'content_structure_tree' ) );
  65  
  66  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezwordtoimageoperator.php',
  67                                      'class' => 'eZWordToImageOperator',
  68                                      'operator_names' => array( 'wordtoimage',
  69                                                                 'mimetype_icon', 'class_icon', 'classgroup_icon', 'action_icon', 'icon',
  70                                                                 'flag_icon', 'icon_info' ) );
  71  
  72  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezkerneloperator.php',
  73                                      'class' => 'eZKernelOperator',
  74                                      'operator_names' => array( 'ezpreference' ) );
  75  
  76  
  77  $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatephpoperator.php',
  78                                      'function' => 'eZPHPOperatorInit',
  79                                      'operator_names_function' => 'eZPHPOperatorNameInit' );
  80  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezmoduleparamsoperator.php',
  81                                      'class' => 'eZModuleParamsOperator',
  82                                      'operator_names' => array( 'module_params' ) );
  83  
  84  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/eztopmenuoperator.php',
  85                                      'class' => 'eZTopMenuOperator',
  86                                      'operator_names' => array( 'topmenu' ) );
  87  
  88  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/ezpackageoperator.php',
  89                                      'class' => 'eZPackageOperator',
  90                                      'operator_names' => array( 'ezpackage' ) );
  91  
  92  $eZTemplateOperatorArray[] = array( 'script' => 'kernel/common/eztocoperator.php',
  93                                      'class' => 'eZTOCOperator',
  94                                      'operator_names' => array( 'eztoc' ) );
  95  
  96  // Function autoloading
  97  
  98  $eZTemplateFunctionArray = array();
  99  $eZTemplateFunctionArray[] = array( 'function' => 'eZObjectForwardInit',
 100                                      'function_names' => array( 'attribute_edit_gui',
 101                                                                 'attribute_view_gui',
 102                                                                 'attribute_result_gui',
 103                                                                 'attribute_pdf_gui',
 104                                                                 'attribute_diff_gui',
 105                                                                 'related_view_gui',
 106                                                                 'node_view_gui',
 107                                                                 'content_view_gui',
 108                                                                 'content_pdf_gui',
 109                                                                 'shop_account_view_gui',
 110                                                                 'content_version_view_gui',
 111                                                                 'collaboration_view_gui',
 112                                                                 'collaboration_icon',
 113                                                                 'collaboration_simple_message_view',
 114                                                                 'collaboration_participation_view',
 115                                                                 'event_edit_gui',
 116                                                                 'event_view_gui',
 117                                                                 'class_attribute_view_gui',
 118                                                                 'class_attribute_edit_gui' ) );
 119  
 120  if ( !function_exists( 'eZPHPOperatorInit' ) )
 121  {
 122      function &eZPHPOperatorInit()
 123          {
 124              include_once ( 'lib/eztemplate/classes/eztemplatephpoperator.php' );
 125              $ini =& eZINI::instance( 'template.ini' );
 126              $operatorList = $ini->variable( 'PHP', 'PHPOperatorList' );
 127              $templatePHPOperator = new eZTemplatePHPOperator( $operatorList );
 128              return $templatePHPOperator;
 129          }
 130  }
 131  
 132  if ( !function_exists( 'eZPHPOperatorNameInit' ) )
 133  {
 134      function eZPHPOperatorNameInit()
 135          {
 136              $ini =& eZINI::instance( 'template.ini' );
 137              $operatorList = $ini->variable( 'PHP', 'PHPOperatorList' );
 138              return array_keys( $operatorList );
 139          }
 140  }
 141  
 142  if ( !function_exists( 'eZObjectForwardInit' ) )
 143  {
 144      function eZObjectForwardInit()
 145          {
 146              include_once ( 'kernel/common/ezobjectforwarder.php' );
 147              $forward_rules = array(
 148                  'attribute_edit_gui' => array( 'template_root' => 'content/datatype/edit',
 149                                                 'input_name' => 'attribute',
 150                                                 'output_name' => 'attribute',
 151                                                 'namespace' => 'ContentAttribute',
 152                                                 'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ) ),
 153                                                 'attribute_access' => array( array( 'edit_template' ) ),
 154                                                 'use_views' => false ),
 155  
 156                  'attribute_pdf_gui' => array( 'template_root' => 'content/datatype/pdf',
 157                                                'input_name' => 'attribute',
 158                                                'output_name' => 'attribute',
 159                                                'namespace' => 'ContentAttribute',
 160                                                'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ) ),
 161                                                'attribute_access' => array( array( 'view_template' ) ),
 162                                                'use_views' => false ),
 163  
 164                  'attribute_view_gui' => array( 'template_root' => array( 'type' => 'multi_match',
 165                                                                           'attributes' => array( 'is_information_collector' ),
 166                                                                           'matches' => array( array( false,
 167                                                                                                      'content/datatype/view' ),
 168                                                                                               array( true,
 169                                                                                                      'content/datatype/collect' ) ) ),
 170                                                 'render_mode' => false,
 171                                                 'input_name' => 'attribute',
 172                                                 'output_name' => 'attribute',
 173                                                 'namespace' => 'ContentAttribute',
 174                                                 'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ) ),
 175                                                 'attribute_access' => array( array( 'view_template' ) ),
 176                                                 'optional_views' => true,
 177                                                 'use_views' => 'view' ),
 178  
 179                  'attribute_diff_gui' => array( 'template_root' => 'content/datatype/diff',
 180                                                 'input_name' => 'attribute',
 181                                                 'output_name' => 'attribute',
 182                                                 'namespace' => 'ContentAttribute',
 183                                                 'attribute_keys' => array( 'attribute_identifier' => array( 'contentclass_attribute_identifier' ) ),
 184                                                 'attribute_access' => array( array( 'view_template' ) ),
 185                                                 'use_views' => false ),
 186  
 187                  'attribute_result_gui' => array( 'template_root' => 'content/datatype/result',
 188                                                   'render_mode' => false,
 189                                                   'input_name' => 'attribute',
 190                                                   'output_name' => 'attribute',
 191                                                   'namespace' => 'CollectionAttribute',
 192                                                   'attribute_access' => array( array( 'result_template' ) ),
 193                                                   'optional_views' => true,
 194                                                   'use_views' => 'view' ),
 195  
 196                  'related_view_gui' => array( 'template_root' => 'content/related',
 197                                               'input_name' => 'related_object',
 198                                               'output_name' => 'related_object',
 199                                               'namespace' => 'RelatedView',
 200                                               'attribute_keys' => array( 'object' => array( 'id' ),
 201                                                                          'class' => array( 'class_id' ),
 202                                                                          'section' => array( 'section_id' ),
 203                                                                          'class_identifier' => array( 'class_identifier' ) ),
 204                                               'attribute_access' => array(),
 205                                               'use_views' => 'view' ),
 206  
 207                  'shop_account_view_gui' => array( 'template_root' => "shop/accounthandlers",
 208                                                    'input_name' => 'order',
 209                                                    'output_name' => 'order',
 210                                                    'namespace' => 'ShopAccount',
 211                                                    'attribute_access' => array( array( 'account_view_template' ) ),
 212                                                    'use_views' => 'view' ),
 213  
 214                  'content_view_gui' => array( 'template_root' => 'content/view',
 215                                               'input_name' => 'content_object',
 216                                               'output_name' => 'object',
 217                                               'namespace' => 'ContentView',
 218                                               'attribute_keys' => array( 'object' => array( 'id' ),
 219                                                                          'class_group' => array( 'match_ingroup_id_list' ),
 220                                                                          'class' => array( 'contentclass_id' ),
 221                                                                          'section' => array( 'section_id' ),
 222                                                                          'class_identifier' => array( 'class_identifier' ) ),
 223                                               'attribute_access' => array(),
 224                                               'use_views' => 'view' ),
 225  
 226  
 227                  'content_pdf_gui' => array( 'template_root' => 'content/pdf',
 228                                               'input_name' => 'content_object',
 229                                               'output_name' => 'object',
 230                                               'namespace' => 'ContentView',
 231                                               'attribute_keys' => array( 'object' => array( 'id' ),
 232                                                                          'class' => array( 'contentclass_id' ),
 233                                                                          'section' => array( 'section_id' ),
 234                                                                          'class_identifier' => array( 'class_identifier' ) ),
 235                                               'attribute_access' => array(),
 236                                               'use_views' => 'view' ),
 237  
 238                  'content_version_view_gui' => array( 'template_root' => 'content/version/view',
 239                                                       'input_name' => 'content_version',
 240                                                       'output_name' => 'version',
 241                                                       'namespace' => 'VersionView',
 242                                                       'attribute_keys' => array( 'object' => array( 'contentobject_id' ),
 243                                                                                  'class' => array( 'contentobject', 'contentclass_id' ),
 244                                                                                  'section' => array( 'contentobject', 'section_id' ),
 245                                                                                  'class_identifier' => array( 'contentobject', 'class_identifier' ) ),
 246                                                       'attribute_access' => array(),
 247                                                       'use_views' => 'view' ),
 248  
 249                  'node_view_gui' => array( 'template_root' => 'node/view',
 250                                            'input_name' => 'content_node',
 251                                            'output_name' => 'node',
 252                                            'namespace' => 'NodeView',
 253                                            'constant_template_variables' => array( 'view_parameters' => array( 'offset' => 0 ) ),
 254                                            'attribute_keys' => array( 'node' => array( 'node_id' ),
 255                                                                       'object' => array( 'contentobject_id' ),
 256                                                                       'class' => array( 'object', 'contentclass_id' ),
 257                                                                       'section' => array( 'object', 'section_id' ),
 258                                                                       'class_identifier' => array( 'object', 'class_identifier' ),
 259                                                                       'parent_node' => array( 'parent_node_id' ),
 260                                                                       'depth' => array( 'depth' ),
 261                                                                       'url_alias' => array( 'url_alias' ) ),
 262                                            'attribute_access' => array(),
 263                                            'use_views' => 'view' ),
 264  
 265                  'collaboration_view_gui' => array( 'template_root' => 'collaboration/handlers/view',
 266                                                     'input_name' => 'collaboration_item',
 267                                                     'output_name' => 'item',
 268                                                     'namespace' => 'Collaboration',
 269                                                     'attribute_keys' => array(),
 270                                                     'attribute_access' => array( array( 'type_identifier' ) ),
 271                                                     'use_views' => 'view' ),
 272  
 273                  'collaboration_icon' => array( 'template_root' => 'collaboration/handlers/icon',
 274                                                 'input_name' => 'collaboration_item',
 275                                                 'output_name' => 'item',
 276                                                 'namespace' => 'Collaboration',
 277                                                 'attribute_keys' => array(),
 278                                                 'attribute_access' => array( array( 'type_identifier' ) ),
 279                                                 'use_views' => 'view' ),
 280  
 281                  'collaboration_simple_message_view' => array( 'template_root' => 'collaboration/message/view',
 282                                                                'input_name' => 'collaboration_message',
 283                                                                'output_name' => 'item',
 284                                                                'namespace' => 'CollaborationMessage',
 285                                                                'attribute_keys' => array(),
 286                                                                'attribute_access' => array( array( 'message_type' ) ),
 287                                                                'use_views' => 'view' ),
 288  
 289                  'collaboration_participation_view' => array( 'template_root' => array( 'type' => 'multi_match',
 290                                                                                         'attributes' => array( 'is_builtin_type' ),
 291                                                                                         'matches' => array( array( true,
 292                                                                                                                    'collaboration/participation/view' ),
 293                                                                                                             array( false,
 294                                                                                                                    array( 'collaboration/participation/view/custom',
 295                                                                                                                           array( array( 'participant_type_string' ) ) ) ) ) ),
 296                                                               'input_name' => 'collaboration_participant',
 297                                                               'output_name' => 'item',
 298                                                               'namespace' => 'CollaborationParticipant',
 299                                                               'attribute_keys' => array(),
 300                                                               'attribute_access' => array( array( 'participant_type_string' ) ),
 301                                                               'use_views' => 'view' ),
 302  
 303                  'event_edit_gui' => array( 'template_root' => 'workflow/eventtype/edit',
 304                                             'input_name' => 'event',
 305                                             'output_name' => 'event',
 306                                             'namespace' => 'WorkflowEvent',
 307                                             'attribute_access' => array( array( 'workflow_type_string' ) ),
 308                                             'use_views' => false ),
 309  
 310                  'event_view_gui' => array( 'template_root' => 'workflow/eventtype/view',
 311                                             'input_name' => 'event',
 312                                             'output_name' => 'event',
 313                                             'namespace' => 'WorkflowEvent',
 314                                             'attribute_access' => array( array( 'workflow_type_string' ) ),
 315                                             'use_views' => false ),
 316  
 317                  'class_attribute_view_gui' => array( 'template_root' => 'class/datatype/view',
 318                                                       'input_name' => 'class_attribute',
 319                                                       'output_name' => 'class_attribute',
 320                                                       'namespace' => 'ClassAttribute',
 321                                                       'attribute_access' => array( array( 'data_type',
 322                                                                                           'information',
 323                                                                                           'string' ) ),
 324                                                       'use_views' => false ),
 325  
 326                  'class_attribute_edit_gui' => array( 'template_root' => 'class/datatype/edit',
 327                                                       'input_name' => 'class_attribute',
 328                                                       'output_name' => 'class_attribute',
 329                                                       'namespace' => 'ClassAttribute',
 330                                                       'attribute_access' => array( array( 'data_type',
 331                                                                                           'information',
 332                                                                                           'string' ) ),
 333                                                       'use_views' => false ) );
 334              return new eZObjectForwarder( $forward_rules );
 335          }
 336  }
 337  
 338  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7