| [ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
sfController directs application flow.
| Author: | Fabien Potencier <fabien.potencier@symfony-project.com> |
| Author: | Sean Kerr <skerr@mojavi.org> |
| Version: | SVN: $Id: sfController.class.php 3221 2007-01-11 07:33:23Z fabien $ |
| Poids: | 644 lignes (20 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| componentExists($moduleName, $componentName) X-Ref |
| Indicates whether or not a module has a specific component. param: string A module name param: string An component name return: bool true, if the component exists, otherwise false |
| actionExists($moduleName, $actionName) X-Ref |
| Indicates whether or not a module has a specific action. param: string A module name param: string An action name return: bool true, if the action exists, otherwise false |
| controllerExists($moduleName, $controllerName, $extension, $throwExceptions) X-Ref |
| Looks for a controller and optionally throw exceptions if existence is required (i.e. in the case of {@link getController()}). param: string The name of the module param: string The name of the controller within the module param: string Either 'action' or 'component' depending on the type of controller to look for param: boolean Whether to throw exceptions if the controller doesn't exist return: boolean true if the controller exists, false otherwise |
| forward($moduleName, $actionName) X-Ref |
| Forwards the request to another action. param: string A module name param: string An action name |
| getAction($moduleName, $actionName) X-Ref |
| Retrieves an sfAction implementation instance. param: string A module name param: string An action name return: sfAction An sfAction implementation instance, if the action exists, otherwise null |
| getComponent($moduleName, $componentName) X-Ref |
| Retrieves a sfComponent implementation instance. param: string A module name param: string A component name return: sfComponent A sfComponent implementation instance, if the component exists, otherwise null |
| getController($moduleName, $controllerName, $extension) X-Ref |
| Retrieves a controller implementation instance. param: string A module name param: string A component name param: string Either 'action' or 'component' depending on the type of controller to look for return: object A controller implementation instance, if the controller exists, otherwise null |
| getActionStack() X-Ref |
| Retrieves the action stack. return: sfActionStack An sfActionStack instance, if the action stack is enabled, otherwise null |
| getContext() X-Ref |
| Retrieves the current application context. return: sfContext A sfContext instance |
| getRenderMode() X-Ref |
| Retrieves the presentation rendering mode. return: int One of the following: |
| getView($moduleName, $actionName, $viewName) X-Ref |
| Retrieves a sfView implementation instance. param: string A module name param: string An action name param: string A view name return: sfView A sfView implementation instance, if the view exists, otherwise null |
| initialize($context) X-Ref |
| Initializes this controller. param: sfContext A sfContext implementation instance |
| newInstance($class) X-Ref |
| Retrieves a new sfController implementation instance. param: string A sfController class name return: sfController A sfController implementation instance |
| sendEmail($module, $action) X-Ref |
| Sends and email from the current action. This methods calls a module/action with the sfMailView class. param: string A module name param: string An action name return: string The generated mail content |
| getPresentationFor($module, $action, $viewName = null) X-Ref |
| Returns the rendered view presentation of a given module/action. param: string A module name param: string An action name param: string A View class name return: string The generated content |
| setRenderMode($mode) X-Ref |
| Sets the presentation rendering mode. param: int A rendering mode |
| inCLI() X-Ref |
| Indicates whether or not we were called using the CLI version of PHP. return: bool true, if using cli, otherwise false. |
| loadFilters($filterChain, $actionInstance) X-Ref |
| Loads application nad module filters. param: sfFilterChain A sfFilterChain instance param: sfAction A sfAction instance |
| __call($method, $arguments) X-Ref |
| Calls methods defined via the sfMixer class. param: string The method name param: array The method arguments return: mixed The returned value of the called method |
| Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |