eZ Publish  [4.0]
eztemplateautoload.php
Go to the documentation of this file.
00001 <?php
00002 //
00003 // Created on: <05-Oct-2002 20:15:32 amos>
00004 //
00005 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00006 // SOFTWARE NAME: eZ Publish
00007 // SOFTWARE RELEASE: 4.0.x
00008 // COPYRIGHT NOTICE: Copyright (C) 1999-2008 eZ Systems AS
00009 // SOFTWARE LICENSE: GNU General Public License v2.0
00010 // NOTICE: >
00011 //   This program is free software; you can redistribute it and/or
00012 //   modify it under the terms of version 2.0  of the GNU General
00013 //   Public License as published by the Free Software Foundation.
00014 //
00015 //   This program is distributed in the hope that it will be useful,
00016 //   but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 //   GNU General Public License for more details.
00019 //
00020 //   You should have received a copy of version 2.0 of the GNU General
00021 //   Public License along with this program; if not, write to the Free
00022 //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00023 //   MA 02110-1301, USA.
00024 //
00025 //
00026 // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00027 //
00028 
00029 /*! \file eztemplateautoload.php
00030 */
00031 
00032 // Operator autoloading
00033 
00034 $eZTemplateOperatorArray = array();
00035 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatearrayoperator.php',
00036                                     'class' => 'eZTemplateArrayOperator',
00037                                     'operator_names' => array( 'array',
00038                                                                'hash',
00039                                                                'array_prepend', // DEPRECATED/OBSOLETE
00040                                                                'prepend',       // New,replaces array_prepend.
00041                                                                'array_append',  // DEPRECATED/OBSOLETE
00042                                                                'append',        // New,replaces array_append.
00043                                                                'array_merge',   // DEPRECATED/OBSOLETE
00044                                                                'merge',         // New,replaces array_merge.
00045                                                                'contains',
00046                                                                'compare',
00047                                                                'extract',
00048                                                                'extract_left',
00049                                                                'extract_right',
00050                                                                'begins_with',
00051                                                                'ends_with',
00052                                                                'implode',
00053                                                                'explode',
00054                                                                'repeat',
00055                                                                'reverse',
00056                                                                'insert',
00057                                                                'remove',
00058                                                                'replace',
00059                                                                'unique',
00060                                                                'array_sum'
00061                                                                ) );
00062 
00063 
00064 
00065 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateexecuteoperator.php',
00066                                     'class' => 'eZTemplateExecuteOperator',
00067                                     'operator_names' => array( 'fetch', 'fetch_alias' ) );
00068 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatelocaleoperator.php',
00069                                     'class' => 'eZTemplateLocaleOperator',
00070                                     'operator_names' => array( 'l10n', 'locale', 'datetime', 'currentdate', 'maketime', 'makedate', 'gettime' ) );
00071 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateattributeoperator.php',
00072                                     'class' => 'eZTemplateAttributeOperator',
00073                                     'operator_names' => array( 'attribute' ) );
00074 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatenl2broperator.php',
00075                                     'class' => 'eZTemplateNl2BrOperator',
00076                                     'operator_names' => array( 'nl2br' ) );
00077 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatetextoperator.php',
00078                                     'class' => 'eZTemplateTextOperator',
00079                                     'operator_names' => array( 'concat', 'indent' ) );
00080 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateunitoperator.php',
00081                                     'class' => 'eZTemplateUnitOperator',
00082                                     'operator_names' => array( 'si' ) );
00083 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatelogicoperator.php',
00084                                     'class' => 'eZTemplateLogicOperator',
00085                                     'operator_names' => array( 'lt', 'gt', 'le',
00086                                                                'ge', 'eq', 'ne', 'null',
00087                                                                'not', 'true', 'false',
00088                                                                'or', 'and', 'choose' ) );
00089 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatetypeoperator.php',
00090                                     'class' => 'eZTemplateTypeOperator',
00091                                     'operator_names' => array( 'is_array', 'is_boolean', 'is_integer',
00092                                                                'is_float', 'is_numeric', 'is_string',
00093                                                                'is_object', 'is_class', 'is_null',
00094                                                                'is_set', 'is_unset', 'get_type', 'get_class' ) );
00095 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatecontroloperator.php',
00096                                     'class' => 'eZTemplateControlOperator',
00097                                     'operator_names' => array( 'cond', 'first_set' ) );
00098 
00099 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatearithmeticoperator.php',
00100                                     'class' => 'eZTemplateArithmeticOperator',
00101                                     'operator_names' => array( 'sum', 'sub', 'inc', 'dec',
00102                                                                'div', 'mod', 'mul',
00103                                                                'max', 'min',
00104                                                                'abs', 'ceil', 'floor', 'round',
00105                                                                'int', 'float',
00106                                                                'count',
00107                                                                'roman',
00108                                                                'rand' ) );
00109 
00110 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateimageoperator.php',
00111                                     'class' => 'eZTemplateImageOperator',
00112                                     'operator_names' => array( 'texttoimage',
00113                                                                'image',
00114                                                                'imagefile' ) );
00115 
00116 
00117 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatestringoperator.php',
00118                                     'class' => 'eZTemplateStringOperator',
00119                                     'operator_names' => array( 'upcase',
00120                                                                'downcase',
00121                                                                'count_words',
00122                                                                'count_chars',
00123                                                                'trim',
00124                                                                'break',
00125                                                                'wrap',
00126                                                                'upfirst',
00127                                                                'upword',
00128                                                                'simplify',
00129                                                                'trim',
00130                                                                'wash',
00131                                                                'chr',
00132                                                                'ord',
00133                                                                'shorten',
00134                                                                'pad') );
00135 
00136 $eZTemplateOperatorArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatedigestoperator.php',
00137                                     'class' => 'eZTemplateDigestOperator',
00138                                     'operator_names' => array( 'crc32',
00139                                                                'md5',
00140                                                                'rot13', ) );
00141 
00142 
00143 
00144 // Function autoloading
00145 
00146 $eZTemplateFunctionArray = array();
00147 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatesectionfunction.php',
00148                                     'class' => 'eZTemplateSectionFunction',
00149                                     'function_names' => array( 'section' ),
00150                                     'function_attributes' => array( 'delimiter',
00151                                                                     'section-exclude',
00152                                                                     'section-include',
00153                                                                     'section-else' ) );
00154 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatedelimitfunction.php',
00155                                     'class' => 'eZTemplateDelimitFunction',
00156                                     'function_names' => array( 'ldelim', 'rdelim' ) );
00157 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateincludefunction.php',
00158                                     'class' => 'eZTemplateIncludeFunction',
00159                                     'function_names' => array( 'include' ) );
00160 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateswitchfunction.php',
00161                                     'class' => 'eZTemplateSwitchFunction',
00162                                     'function_names' => array( 'switch' ),
00163                                     'function_attributes' => array( 'case' ) );
00164 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatesequencefunction.php',
00165                                     'class' => 'eZTemplateSequenceFunction',
00166                                     'function_names' => array( 'sequence' ) );
00167 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatesetfunction.php',
00168                                     'class' => 'eZTemplateSetFunction',
00169                                     'function_names' => array( 'set', 'let', 'default' ) );
00170 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateblockfunction.php',
00171                                     'class' => 'eZTemplateBlockFunction',
00172                                     'function_names' => array( 'set-block', 'append-block', 'run-once' ) );
00173 
00174 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatedebugfunction.php',
00175                                     'class' => 'eZTemplateDebugFunction',
00176                                     'function_names' => array( 'debug-timing-point', 'debug-accumulator',
00177                                                                'debug-log',
00178                                                                'debug-trace' ) );
00179 
00180 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatecachefunction.php',
00181                                     'class' => 'eZTemplateCacheFunction',
00182                                     'function_names' => array( 'cache-block' ) );
00183 
00184 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatetoolbarfunction.php',
00185                                     'class' => 'eZTemplateToolbarFunction',
00186                                     'function_names' => array( 'tool_bar' ) );
00187 
00188 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatemenufunction.php',
00189                                     'class' => 'eZTemplateMenuFunction',
00190                                     'function_names' => array( 'menu' ) );
00191 
00192 // should we add 'break', 'continue' and 'skip' to the {if} attribute list?
00193 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateiffunction.php',
00194                                     'class' => 'eZTemplateIfFunction',
00195                                     'function_names' => array( 'if' ),
00196                                     'function_attributes' => array( 'elseif',
00197                                                                     'else' ) );
00198 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatewhilefunction.php',
00199                                     'class' => 'eZTemplateWhileFunction',
00200                                     'function_names' => array( 'while' ),
00201                                     'function_attributes' => array( 'delimiter',
00202                                                                     'break',
00203                                                                     'continue',
00204                                                                     'skip' ) );
00205 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateforfunction.php',
00206                                     'class' => 'eZTemplateForFunction',
00207                                     'function_names' => array( 'for' ),
00208                                     'function_attributes' => array( 'delimiter',
00209                                                                     'break',
00210                                                                     'continue',
00211                                                                     'skip' ) );
00212 
00213 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplateforeachfunction.php',
00214                                     'class' => 'eZTemplateForeachFunction',
00215                                     'function_names' => array( 'foreach' ),
00216                                     'function_attributes' => array( 'delimiter',
00217                                                                     'break',
00218                                                                     'continue',
00219                                                                     'skip' ) );
00220 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatedofunction.php',
00221                                     'class' => 'eZTemplateDoFunction',
00222                                     'function_names' => array( 'do' ),
00223                                     'function_attributes' => array( 'delimiter',
00224                                                                     'break',
00225                                                                     'continue',
00226                                                                     'skip' ) );
00227 
00228 $eZTemplateFunctionArray[] = array( 'script' => 'lib/eztemplate/classes/eztemplatedeffunction.php',
00229                                     'class' => 'eZTemplateDefFunction',
00230                                     'function_names' => array( 'def', 'undef' ) );
00231 
00232 
00233 // eZTemplatePHPOperator is not autoload due to it's generic use
00234 // it's up to the users of eZTemplate to initiate a proper usage
00235 // for this operator class.
00236 
00237 ?>