-
(string) getActionName ()
Browse code
Retrieve the action name for this context.
returns The currently executing action name, if one is set, otherwise null.
-
(sfActionStack) getActionStack ()
Browse code
Retrieve the ActionStack.
returns the sfActionStack instance
-
(sfController) getController ()
Browse code
Retrieve the controller.
returns The current sfController implementation instance.
-
(sfView) getCurrentViewInstance ()
Browse code
Retrieve the curretn view instance for this context.
returns The currently view instance, if one is set, otherwise null.
-
(mixed) getDatabaseConnection ()
Browse code
Retrieve a database connection from the database manager.
This is a shortcut to manually getting a connection from an existing
database implementation instance.
If the [sf_use_database] setting is off, this will return null.
returns A Database instance.
throws sfDatabaseException If the requested database name does not exist.
-
(sfDatabaseManager) getDatabaseManager ()
Browse code
Retrieve the database manager.
returns The current sfDatabaseManager instance.
-
Retrieve the i18n instance
returns The current sfI18N implementation instance.
-
(sfContext) getInstance ()
Browse code
Retrieve the singleton instance of this class.
returns A sfContext implementation instance.
-
(sfLogger) getLogger ()
Browse code
Retrieve the logger.
returns The current sfLogger implementation instance.
-
(string) getModuleDirectory ()
Browse code
Retrieve the module directory for this context.
returns An absolute filesystem path to the directory of the currently executing module, if one is set, otherwise null.
-
(string) getModuleName ()
Browse code
Retrieve the module name for this context.
returns The currently executing module name, if one is set, otherwise null.
-
(sfRequest) getRequest ()
Browse code
Retrieve the request.
returns The current sfRequest implementation instance.
-
(sfResponse) getResponse ()
Browse code
Retrieve the response.
returns The current sfResponse implementation instance.
-
(sfStorage) getStorage ()
Browse code
Retrieve the storage.
returns The current sfStorage implementation instance.
-
Retrieve the user.
returns The current sfUser implementation instance.
-
(sfViewCacheManager) getViewCacheManager ()
Browse code
Retrieve the view cache manager
returns The current sfViewCacheManager implementation instance.
-
-
-
Removes current sfContext instance
This method only exists for testing purpose. Don't use it in your application code.
-
-
(void.) setResponse ()
Browse code
Set the response object.
-
Execute the shutdown procedure.