Changeset 2971
- Timestamp:
- 12/08/06 13:14:14 (2 years ago)
- Files:
-
- trunk/lib/action/sfAction.class.php (modified) (16 diffs)
- trunk/lib/action/sfActionStack.class.php (modified) (6 diffs)
- trunk/lib/action/sfActionStackEntry.class.php (modified) (7 diffs)
- trunk/lib/action/sfComponent.class.php (modified) (5 diffs)
- trunk/lib/cache/sfFunctionCache.class.php (modified) (1 diff)
- trunk/lib/config/sfConfig.class.php (modified) (6 diffs)
- trunk/lib/controller/sfConsoleController.class.php (modified) (1 diff)
- trunk/lib/controller/sfController.class.php (modified) (13 diffs)
- trunk/lib/controller/sfFrontWebController.class.php (modified) (1 diff)
- trunk/lib/controller/sfWebController.class.php (modified) (1 diff)
- trunk/lib/database/sfCreoleDatabase.class.php (modified) (2 diffs)
- trunk/lib/database/sfDatabase.class.php (modified) (5 diffs)
- trunk/lib/database/sfDatabaseManager.class.php (modified) (3 diffs)
- trunk/lib/database/sfMySQLDatabase.class.php (modified) (2 diffs)
- trunk/lib/database/sfPDODatabase.class.php (modified) (2 diffs)
- trunk/lib/database/sfPostgreSQLDatabase.class.php (modified) (3 diffs)
- trunk/lib/database/sfPropelDatabase.class.php (modified) (3 diffs)
- trunk/lib/exception/sfActionException.class.php (modified) (1 diff)
- trunk/lib/exception/sfAutoloadException.class.php (modified) (1 diff)
- trunk/lib/exception/sfCacheException.class.php (modified) (1 diff)
- trunk/lib/exception/sfConfigurationException.class.php (modified) (1 diff)
- trunk/lib/exception/sfContextException.class.php (modified) (1 diff)
- trunk/lib/exception/sfControllerException.class.php (modified) (1 diff)
- trunk/lib/exception/sfDatabaseException.class.php (modified) (1 diff)
- trunk/lib/exception/sfError404Exception.class.php (modified) (2 diffs)
- trunk/lib/exception/sfException.class.php (modified) (4 diffs)
- trunk/lib/exception/sfFactoryException.class.php (modified) (1 diff)
- trunk/lib/exception/sfFileException.class.php (modified) (1 diff)
- trunk/lib/exception/sfFilterException.class.php (modified) (1 diff)
- trunk/lib/exception/sfForwardException.class.php (modified) (1 diff)
- trunk/lib/exception/sfInitializationException.class.php (modified) (1 diff)
- trunk/lib/exception/sfParseException.class.php (modified) (1 diff)
- trunk/lib/exception/sfRenderException.class.php (modified) (1 diff)
- trunk/lib/exception/sfSecurityException.class.php (modified) (1 diff)
- trunk/lib/exception/sfStopException.class.php (modified) (2 diffs)
- trunk/lib/exception/sfStorageException.class.php (modified) (1 diff)
- trunk/lib/exception/sfValidatorException.class.php (modified) (1 diff)
- trunk/lib/exception/sfViewException.class.php (modified) (1 diff)
- trunk/lib/filter/sfBasicSecurityFilter.class.php (modified) (1 diff)
- trunk/lib/filter/sfCacheFilter.class.php (modified) (3 diffs)
- trunk/lib/filter/sfCommonFilter.class.php (modified) (1 diff)
- trunk/lib/filter/sfExecutionFilter.class.php (modified) (1 diff)
- trunk/lib/filter/sfFilter.class.php (modified) (3 diffs)
- trunk/lib/filter/sfFilterChain.class.php (modified) (2 diffs)
- trunk/lib/filter/sfFlashFilter.class.php (modified) (1 diff)
- trunk/lib/filter/sfRenderingFilter.class.php (modified) (1 diff)
- trunk/lib/filter/sfSecurityFilter.class.php (modified) (1 diff)
- trunk/lib/filter/sfWebDebugFilter.class.php (modified) (1 diff)
- trunk/lib/generator/sfAdminGenerator.class.php (modified) (1 diff)
- trunk/lib/generator/sfGeneratorManager.class.php (modified) (2 diffs)
- trunk/lib/helper/ObjectHelper.php (modified) (2 diffs)
- trunk/lib/request/sfConsoleRequest.class.php (modified) (2 diffs)
- trunk/lib/request/sfRequest.class.php (modified) (13 diffs)
- trunk/lib/request/sfWebRequest.class.php (modified) (21 diffs)
- trunk/lib/response/sfResponse.class.php (modified) (7 diffs)
- trunk/lib/response/sfWebResponse.class.php (modified) (12 diffs)
- trunk/lib/storage/sfCreoleSessionStorage.class.php (modified) (8 diffs)
- trunk/lib/storage/sfMySQLSessionStorage.class.php (modified) (8 diffs)
- trunk/lib/storage/sfPDOSessionStorage.class.php (modified) (8 diffs)
- trunk/lib/storage/sfPostgreSQLSessionStorage.class.php (modified) (8 diffs)
- trunk/lib/storage/sfSessionStorage.class.php (modified) (3 diffs)
- trunk/lib/storage/sfSessionTestStorage.class.php (modified) (4 diffs)
- trunk/lib/storage/sfStorage.class.php (modified) (5 diffs)
- trunk/lib/user/sfBasicSecurityUser.class.php (modified) (1 diff)
- trunk/lib/user/sfSecurityUser.class.php (modified) (6 diffs)
- trunk/lib/user/sfUser.class.php (modified) (5 diffs)
- trunk/lib/util/sfBrowser.class.php (modified) (1 diff)
- trunk/lib/util/sfContext.class.php (modified) (15 diffs)
- trunk/lib/util/sfParameterHolder.class.php (modified) (10 diffs)
- trunk/lib/util/sfToolkit.class.php (modified) (5 diffs)
- trunk/lib/util/sfYaml.class.php (modified) (2 diffs)
- trunk/lib/validator/sfCallbackValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfCompareValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfDateValidator.class.php (modified) (1 diff)
- trunk/lib/validator/sfEmailValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfFileValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfHtmlValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfNumberValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfPropelUniqueValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfRegexValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfStringValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfUrlValidator.class.php (modified) (2 diffs)
- trunk/lib/validator/sfValidator.class.php (modified) (4 diffs)
- trunk/lib/validator/sfValidatorManager.class.php (modified) (6 diffs)
- trunk/lib/view/sfView.class.php (modified) (19 diffs)
- trunk/lib/view/sfViewCacheManager.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/action/sfAction.class.php
r2956 r2971 66 66 * By Default, this method is empty. 67 67 */ 68 public function preExecute ()68 public function preExecute() 69 69 { 70 70 } … … 75 75 * By Default, this method is empty. 76 76 */ 77 public function postExecute ()77 public function postExecute() 78 78 { 79 79 } … … 83 83 * 84 84 */ 85 public function forward404 ($message = '')85 public function forward404($message = '') 86 86 { 87 87 throw new sfError404Exception($message); … … 94 94 * @param bool A condition that evaluates to true or false. 95 95 */ 96 public function forward404Unless ($condition, $message = '')96 public function forward404Unless($condition, $message = '') 97 97 { 98 98 if (!$condition) … … 108 108 * @param bool A condition that evaluates to true or false. 109 109 */ 110 public function forward404If ($condition, $message = '')110 public function forward404If($condition, $message = '') 111 111 { 112 112 if ($condition) … … 120 120 * 121 121 */ 122 public function redirect404 ()122 public function redirect404() 123 123 { 124 124 return $this->redirect('/'.sfConfig::get('sf_error_404_module').'/'.sfConfig::get('sf_error_404_action')); … … 136 136 * @throws sfStopException always 137 137 */ 138 public function forward ($module, $action)138 public function forward($module, $action) 139 139 { 140 140 if (sfConfig::get('sf_logging_enabled')) $this->getContext()->getLogger()->info('{sfAction} forward to action "'.$module.'/'.$action.'"'); … … 160 160 * @throws sfStopException always 161 161 */ 162 public function forwardIf ($condition, $module, $action)162 public function forwardIf($condition, $module, $action) 163 163 { 164 164 if ($condition) … … 183 183 * @throws sfStopException always 184 184 */ 185 public function forwardUnless ($condition, $module, $action)185 public function forwardUnless($condition, $module, $action) 186 186 { 187 187 if (!$condition) … … 299 299 * @throws sfStopException always 300 300 */ 301 public function redirectIf ($condition, $url)301 public function redirectIf($condition, $url) 302 302 { 303 303 if ($condition) … … 320 320 * @throws sfStopException always 321 321 */ 322 public function redirectUnless ($condition, $url)322 public function redirectUnless($condition, $url) 323 323 { 324 324 if (!$condition) … … 353 353 * - The view that will be executed. 354 354 */ 355 public function getDefaultView ()355 public function getDefaultView() 356 356 { 357 357 return sfView::INPUT; … … 370 370 * @see sfRequest 371 371 */ 372 public function getRequestMethods ()372 public function getRequestMethods() 373 373 { 374 374 return sfRequest::GET | sfRequest::POST | sfRequest::NONE; … … 386 386 * - The view that will be executed. 387 387 */ 388 public function handleError ()388 public function handleError() 389 389 { 390 390 return sfView::ERROR; … … 398 398 * @return void 399 399 */ 400 public function registerValidators ($validatorManager)400 public function registerValidators($validatorManager) 401 401 { 402 402 } … … 407 407 * @return bool true, if validation completes successfully, otherwise false. 408 408 */ 409 public function validate ()409 public function validate() 410 410 { 411 411 return true; trunk/lib/action/sfActionStack.class.php
r2195 r2971 35 35 * @return sfActionStackEntry sfActionStackEntry instance 36 36 */ 37 public function addEntry ($moduleName, $actionName, $actionInstance)37 public function addEntry($moduleName, $actionName, $actionInstance) 38 38 { 39 39 // create our action stack entry and add it to our stack … … 52 52 * @return sfActionStackEntry An action stack entry implementation. 53 53 */ 54 public function getEntry ($index)54 public function getEntry($index) 55 55 { 56 56 $retval = null; … … 71 71 * @return sfActionStackEntry An action stack entry implementation. 72 72 */ 73 public function popEntry ()73 public function popEntry() 74 74 { 75 75 return array_pop($this->stack); … … 81 81 * @return sfActionStackEntry An action stack entry implementation. 82 82 */ 83 public function getFirstEntry ()83 public function getFirstEntry() 84 84 { 85 85 $retval = null; … … 98 98 * @return sfActionStackEntry An action stack entry implementation. 99 99 */ 100 public function getLastEntry ()100 public function getLastEntry() 101 101 { 102 102 $count = count($this->stack); … … 116 116 * @return int The size of this stack. 117 117 */ 118 public function getSize ()118 public function getSize() 119 119 { 120 120 return count($this->stack); trunk/lib/action/sfActionStackEntry.class.php
r2195 r2971 39 39 * @return void 40 40 */ 41 public function __construct ($moduleName, $actionName, $actionInstance)41 public function __construct($moduleName, $actionName, $actionInstance) 42 42 { 43 43 $this->actionName = $actionName; … … 51 51 * @return string An action name. 52 52 */ 53 public function getActionName ()53 public function getActionName() 54 54 { 55 55 return $this->actionName; … … 61 61 * @return sfAction An action implementation instance. 62 62 */ 63 public function getActionInstance ()63 public function getActionInstance() 64 64 { 65 65 return $this->actionInstance; … … 71 71 * @return sfView A view implementation instance. 72 72 */ 73 public function getViewInstance ()73 public function getViewInstance() 74 74 { 75 75 return $this->viewInstance; … … 83 83 * @return void 84 84 */ 85 public function setViewInstance ($viewInstance)85 public function setViewInstance($viewInstance) 86 86 { 87 87 $this->viewInstance = $viewInstance; … … 93 93 * @return string A module name. 94 94 */ 95 public function getModuleName ()95 public function getModuleName() 96 96 { 97 97 return $this->moduleName; … … 118 118 * @return void 119 119 */ 120 public function setPresentation (&$presentation)120 public function setPresentation(&$presentation) 121 121 { 122 122 $this->presentation =& $presentation; trunk/lib/action/sfComponent.class.php
r2953 r2971 44 44 * - The view that will be executed. 45 45 */ 46 abstract function execute ();46 abstract function execute(); 47 47 48 48 /** … … 69 69 * @return sfContext The current sfContext instance. 70 70 */ 71 public final function getContext ()71 public final function getContext() 72 72 { 73 73 return $this->context; … … 79 79 * @return sfLogger The current sfLogger instance. 80 80 */ 81 public final function getLogger ()81 public final function getLogger() 82 82 { 83 83 return $this->context->getLogger(); … … 91 91 * (available priorities: emerg, alert, crit, err, warning, notice, info, debug). 92 92 */ 93 public function logMessage ($message, $priority = 'info')93 public function logMessage($message, $priority = 'info') 94 94 { 95 95 if (sfConfig::get('sf_logging_enabled')) … … 104 104 * @param string The message text. 105 105 */ 106 public function debugMessage ($message)106 public function debugMessage($message) 107 107 { 108 108 if (sfConfig::get('sf_web_debug')) trunk/lib/cache/sfFunctionCache.class.php
r1697 r2971 35 35 * @access public 36 36 */ 37 public function call ()37 public function call() 38 38 { 39 39 $arguments = func_get_args(); trunk/lib/config/sfConfig.class.php
r2654 r2971 30 30 * @return mixed A config parameter value, if the config parameter exists, otherwise null. 31 31 */ 32 public static function get ($name, $default = null)32 public static function get($name, $default = null) 33 33 { 34 34 return isset(self::$config[$name]) ? self::$config[$name] : $default; … … 42 42 * @return bool true, if the config parameter exists, otherwise false. 43 43 */ 44 public static function has ($name)44 public static function has($name) 45 45 { 46 46 return array_key_exists($name, self::$config); … … 57 57 * @return void 58 58 */ 59 public static function set ($name, $value)59 public static function set($name, $value) 60 60 { 61 61 self::$config[$name] = $value; … … 72 72 * @return void 73 73 */ 74 public static function add ($parameters = array())74 public static function add($parameters = array()) 75 75 { 76 76 self::$config = array_merge(self::$config, $parameters); … … 82 82 * @return array An associative array of configuration parameters. 83 83 */ 84 public static function getAll ()84 public static function getAll() 85 85 { 86 86 return self::$config; … … 92 92 * @return void 93 93 */ 94 public static function clear ()94 public static function clear() 95 95 { 96 96 self::$config = null; trunk/lib/controller/sfConsoleController.class.php
r2170 r2971 26 26 * @return void 27 27 */ 28 public function dispatch ($moduleName, $actionName, $parameters = array())28 public function dispatch($moduleName, $actionName, $parameters = array()) 29 29 { 30 30 try trunk/lib/controller/sfController.class.php
r2950 r2971 36 36 * @return bool true, if the component exists, otherwise false. 37 37 */ 38 public function componentExists ($moduleName, $componentName)38 public function componentExists($moduleName, $componentName) 39 39 { 40 40 return $this->controllerExists($moduleName, $componentName, 'component', false); … … 49 49 * @return bool true, if the action exists, otherwise false. 50 50 */ 51 public function actionExists ($moduleName, $actionName)51 public function actionExists($moduleName, $actionName) 52 52 { 53 53 return $this->controllerExists($moduleName, $actionName, 'action', false); … … 70 70 * @return boolean true if the controller exists; false otherwise 71 71 */ 72 protected function controllerExists ($moduleName, $controllerName, $extension, $throwExceptions)72 protected function controllerExists($moduleName, $controllerName, $extension, $throwExceptions) 73 73 { 74 74 $dirs = sfLoader::getControllerDirs($moduleName); … … 160 160 * @throws <b>sfSecurityException</b> If the action requires security but the user implementation is not of type sfSecurityUser. 161 161 */ 162 public function forward ($moduleName, $actionName)162 public function forward($moduleName, $actionName) 163 163 { 164 164 // replace unwanted characters … … 316 316 * @return Action An Action implementation instance, if the action exists, otherwise null. 317 317 */ 318 public function getAction ($moduleName, $actionName)318 public function getAction($moduleName, $actionName) 319 319 { 320 320 return $this->getController($moduleName, $actionName, 'action'); … … 329 329 * @return Component A Component implementation instance, if the component exists, otherwise null. 330 330 */ 331 public function getComponent ($moduleName, $componentName)331 public function getComponent($moduleName, $componentName) 332 332 { 333 333 return $this->getController($moduleName, $componentName, 'component'); 334 334 } 335 335 336 protected function getController ($moduleName, $controllerName, $extension)336 protected function getController($moduleName, $controllerName, $extension) 337 337 { 338 338 $classSuffix = ucfirst(strtolower($extension)); … … 360 360 * @return sfActionStack An sfActionStack instance, if the action stack is enabled, otherwise null. 361 361 */ 362 public function getActionStack ()362 public function getActionStack() 363 363 { 364 364 return $this->context->getActionStack(); … … 370 370 * @return Context A Context instance. 371 371 */ 372 public function getContext ()372 public function getContext() 373 373 { 374 374 return $this->context; … … 382 382 * - sfView::RENDER_VAR 383 383 */ 384 public function getRenderMode ()384 public function getRenderMode() 385 385 { 386 386 return $this->renderMode; … … 396 396 * @return View A View implementation instance, if the view exists, otherwise null. 397 397 */ 398 public function getView ($moduleName, $actionName, $viewName)398 public function getView($moduleName, $actionName, $viewName) 399 399 { 400 400 // user view exists? … … 430 430 * @return void 431 431 */ 432 public function initialize ($context)432 public function initialize($context) 433 433 { 434 434 $this->context = $context; … … 452 452 * @throws sfFactoryException If a new controller implementation instance cannot be created. 453 453 */ 454 public static function newInstance ($class)454 public static function newInstance($class) 455 455 { 456 456 try … … 485 485 * @throws sfRenderException - If an invalid render mode has been set. 486 486 */ 487 public function setRenderMode ($mode)487 public function setRenderMode($mode) 488 488 { 489 489 if ($mode == sfView::RENDER_CLIENT || $mode == sfView::RENDER_VAR || $mode == sfView::RENDER_NONE) trunk/lib/controller/sfFrontWebController.class.php
r2808 r2971 31 31 * @return void 32 32 */ 33 public function dispatch ()33 public function dispatch() 34 34 { 35 35 try trunk/lib/controller/sfWebController.class.php
r2689 r2971 203 203 * @return void 204 204 */ 205 public function redirect ($url, $delay = 0, $statusCode = 302)205 public function redirect($url, $delay = 0, $statusCode = 302) 206 206 { 207 207 $response = $this->getContext()->getResponse(); trunk/lib/database/sfCreoleDatabase.class.php
r2137 r2971 56 56 * @throws <b>sfDatabaseException</b> If a connection could not be created. 57 57 */ 58 public function connect ()58 public function connect() 59 59 { 60 60 try … … 203 203 * @throws <b>sfDatabaseException</b> If an error occurs while shutting down this database. 204 204 */ 205 public function shutdown ()205 public function shutdown() 206 206 { 207 207 if ($this->connection !== null) trunk/lib/database/sfDatabase.class.php
r2953 r2971 32 32 * @throws <b>sfDatabaseException</b> If a connection could not be created. 33 33 */ 34 abstract function connect ();34 abstract function connect(); 35 35 36 36 /** … … 44 44 * @throws <b>sfDatabaseException</b> If a connection could not be retrieved. 45 45 */ 46 public function getConnection ()46 public function getConnection() 47 47 { 48 48 if ($this->connection == null) … … 61 61 * @throws <b>sfDatabaseException</b> If a resource could not be retrieved. 62 62 */ 63 public function getResource ()63 public function getResource() 64 64 { 65 65 if ($this->resource == null) … … 80 80 * @throws <b>sfInitializationException</b> If an error occurs while initializing this Database. 81 81 */ 82 public function initialize ($parameters = array())82 public function initialize($parameters = array()) 83 83 { 84 84 $this->parameterHolder = new sfParameterHolder(); … … 113 113 * @throws <b>sfDatabaseException</b> If an error occurs while shutting down this database. 114 114 */ 115 abstract function shutdown ();115 abstract function shutdown(); 116 116 } trunk/lib/database/sfDatabaseManager.class.php
r2325 r2971 36 36 * @throws <b>sfDatabaseException</b> If the requested database name does not exist. 37 37 */ 38 public function getDatabase ($name = 'default')38 public function getDatabase($name = 'default') 39 39 { 40 40 if (isset($this->databases[$name])) … … 57 57 * @throws <b>sfInitializationException</b> If an error occurs while initializing this DatabaseManager. 58 58 */ 59 public function initialize ()59 public function initialize() 60 60 { 61 61 // load database configuration … … 70 70 * @throws <b>sfDatabaseException</b> If an error occurs while shutting down this DatabaseManager. 71 71 */ 72 public function shutdown ()72 public function shutdown() 73 73 { 74 74 // loop through databases and shutdown connections trunk/lib/database/sfMySQLDatabase.class.php
r2195 r2971 43 43 * @throws <b>sfDatabaseException</b> If a connection could not be created. 44 44 */ 45 public function connect ()45 public function connect() 46 46 { 47 47 … … 157 157 * @throws <b>sfDatabaseException</b> If an error occurs while shutting down this database. 158 158 */ 159 public function shutdown ()159 public function shutdown() 160 160 { 161 161 if ($this->connection != null) trunk/lib/database/sfPDODatabase.class.php
r2400 r2971 27 27 * @throws <b>sfDatabaseException</b> If a connection could not be created. 28 28 */ 29 public function connect ()29 public function connect() 30 30 { 31 31 // determine how to get our parameters … … 79 79 * @throws <b>sfDatabaseException</b> If an error occurs while shutting down this database. 80 80 */ 81 public function shutdown ()81 public function shutdown() 82 82 { 83 83 if ($this->connection !== null) trunk/lib/database/sfPostgreSQLDatabase.class.php
r2195 r2971 45 45 * @throws <b>sfDatabaseException</b> If a connection could not be created. 46 46 */ 47 public function connect ()47 public function connect() 48 48 { 49 49 // determine how to get our parameters … … 115 115 * @return string A connection string. 116 116 */ 117 protected function loadParameters (&$array)117 protected function loadParameters(&$array) 118 118 { 119 119 $database = $this->getParameter('database'); … … 140 140 * @throws <b>sfDatabaseException</b> If an error occurs while shutting down this database. 141 141 */ 142 public function shutdown ()142 public function shutdown() 143 143 { 144 144 if ($this->connection != null) trunk/lib/database/sfPropelDatabase.class.php
r2881 r2971 31 31 static $config = array(); 32 32 33 public function initialize ($parameters = null, $name = null)33 public function initialize($parameters = null, $name = null) 34 34 { 35 35 parent::initialize($parameters); … … 51 51 } 52 52 53 public function setDefaultConfig ()53 public function setDefaultConfig() 54 54 { 55 55 self::$config['propel']['datasources']['default'] = $this->getParameter('datasource'); 56 56 } 57 57 58 public function addConfig ()58 public function addConfig() 59 59 { 60 60 $dsn = $this->getParameter('dsn'); … … 94 94 } 95 95 96 public static function getConfiguration ()96 public static function getConfiguration() 97 97 { 98 98 return self::$config; 99 99 } 100 100 101 public function setConnectionParameter ($key, $value)101 public function setConnectionParameter($key, $value) 102 102 { 103 103 if ($key == 'host') trunk/lib/exception/sfActionException.class.php
r1415 r2971 27 27 * @param int The error code. 28 28 */ 29 public function __construct ($message = null, $code = 0)29 public function __construct($message = null, $code = 0) 30 30 { 31 31 $this->setName('sfActionException'); trunk/lib/exception/sfAutoloadException.class.php
r1415 r2971 27 27 * @param int The error code. 28 28 */ 29 public function __construct ($message = null, $code = 0)29 public function __construct($message = null, $code = 0) 30 30 { 31 31 $this->setName('sfAutoloadException'); trunk/lib/exception/sfCacheException.class.php
r1415 r2971 27 27 * @param int The error code. 28 28 */ 29 public function __construct ($message = null, $code = 0)29 public function __construct($message = null, $code = 0) 30 30 { 31 31 $this->setName('sfCacheException'); trunk/lib/exception/sfConfigurationException.class.php
r1415 r2971 28 28 * @param int The error code. 29 29 */ 30 public function __construct ($message = null, $code = 0)30 public function __construct($message = null, $code = 0) 31 31 { 32 32 $this->setName('sfConfigurationException'); trunk/lib/exception/sfContextException.class.php
r1415 r2971 26 26 * @param int The error code. 27 27 */ 28 public function __construct ($message = null, $code = 0)28 public function __construct($message = null, $code = 0) 29 29 { 30 30 parent::__construct($message, $code); trunk/lib/exception/sfControllerException.class.php
r1415 r2971 28 28 * @param int The error code. 29 29 */ 30 public function __construct ($message = null, $code = 0)30 public function __construct($message = null, $code = 0) 31 31 { 32 32 $this->setName('sfControllerException'); trunk/lib/exception/sfDatabaseException.class.php
r1415 r2971 27 27 * @param int The error code. 28 28 */ 29 public function __construct ($message = null, $code = 0)29 public function __construct($message = null, $code = 0) 30 30 { 31 31 $this->setName('sfDatabaseException'); trunk/lib/exception/sfError404Exception.class.php
r1415 r2971 25 25 * @param int The error code. 26 26 */ 27 public function __construct ($message = null, $code = 0)27 public function __construct($message = null, $code = 0) 28 28 { 29 29 $this->setName('sfError404Exception'); … … 31 31 } 32 32 33 public function printStackTrace ($exception = null)33 public function printStackTrace($exception = null) 34 34 { 35 35 sfContext::getInstance()->getController()->forward(sfConfig::get('sf_error_404_module'), sfConfig::get('sf_error_404_action')); trunk/lib/exception/sfException.class.php
r2808 r2971 32 32 * @param int The error code. 33 33 */ 34 public function __construct ($message = null, $code = 0)34 public function __construct($message = null, $code = 0) 35 35 { 36 36 if ($this->getName() === null) … … 52 52 * @return string This exception's name. 53 53 */ 54 public function getName ()54 public function getName() 55 55 { 56 56 return $this->name; … … 60 60 * Print the stack trace for this exception. 61 61 */ 62 public function printStackTrace ($exception = null)62 public function printStackTrace($exception = null) 63 63 { 64 64 if (!$exception) … … 252 252 * @param string An exception name. 253 253 */ 254 protected function setName ($name)254 protected function setName($name) 255 255 { 256 256 $this->name = $name; trunk/lib/exception/sfFactoryException.class.php
r141