Changeset 184
- Timestamp:
- 06/20/08 12:24:23 (3 months ago)
- Location:
- ez_publish/myutils/trunk/autoloads
- Files:
-
- 2 modified
-
eztemplateautoload.php (modified) (1 diff)
-
myutils_operators.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ez_publish/myutils/trunk/autoloads/eztemplateautoload.php
r183 r184 32 32 $eZTemplateOperatorArray[] = array( 'script' => 'extension/myutils/autoloads/myutils_operators.php', 33 33 'class' => 'myutilsOperators', 34 'operator_names' => array( 'gmdate', 34 'operator_names' => array( 'get_siteaccess', 35 'gmdate', 35 36 'is_debug_enabled', 36 37 'path_to_path_array', -
ez_publish/myutils/trunk/autoloads/myutils_operators.php
r183 r184 40 40 { 41 41 /* Opérateurs */ 42 $this->Operators = array( 'gmdate', 42 $this->Operators = array( 'get_siteaccess', 43 'gmdate', 43 44 'is_debug_enabled', 44 45 'path_to_path_array', … … 63 64 function namedParameterList() 64 65 { 65 return array( 'gmdate' => array( 66 return array( 'get_siteaccess' => array( ), 67 68 'gmdate' => array( 66 69 'format' => array( 'type' => 'string', 'required' => true, 'default' => '' ), 67 70 'timestamp' => array( 'type' => 'integer', 'required' => true, 'default' => time() ) … … 101 104 switch ( $operatorName ) 102 105 { 106 case 'get_siteaccess': 107 $operatorValue = $GLOBALS['eZCurrentAccess']['name']; 108 break; 109 103 110 case 'gmdate': 104 111 $operatorValue = $this->gmDate( $namedParameters['format'], … … 107 114 108 115 case 'is_debug_enabled': 109 $operatorValue = $this->isDebugEnabled();116 $operatorValue = eZDebug::isDebugEnabled(); 110 117 break; 111 118 … … 153 160 { 154 161 return gmdate( $format, $timestamp); 155 }156 157 158 159 /**160 * Retourne l'info si le débug est activé.161 * Peut servir pour conditionner la feuille de style débug.162 *163 * @author Guillaume Kulakowski <guillaume_AT_llaumgui_DOT_com>164 * @since 1.0165 *166 * @return boolean167 */168 function isDebugEnabled()169 {170 return eZDebug::isDebugEnabled();171 162 } 172 163
