Changeset 184 for ez_publish/myutils/trunk/autoloads/myutils_operators.php
- Timestamp:
- 06/20/08 12:24:23 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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
