Свойство | Type | Description | |
---|---|---|---|
$configuration | |||
$current | |||
$dispatcher | |||
$factories | |||
$hasShutdownUserAndStorage | |||
$instances | |||
$mailerConfiguration | |||
$serviceContainerConfiguration |
Méthode | Description | |
---|---|---|
__call ( string $method, array $arguments ) : mixed | Calls methods defined via sfEventDispatcher. | |
createInstance ( sfApplicationConfiguration $configuration, string $name = null, string $class = __CLASS__ ) : sfContext | Creates a new context instance. | |
dispatch ( ) | Dispatches the current request. | |
filterTemplateParameters ( sfEvent $event, array $parameters ) : array | Listens to the template.filter_parameters event. | |
get ( string $name ) : object | Gets an object from the current context. | |
getActionName ( ) : string | Retrieve the action name for this context. | |
getActionStack ( ) : sfActionStack | Retrieve the ActionStack. | |
getConfigCache ( ) : sfConfigCache | Returns the configuration cache. | |
getConfiguration ( ) : sfApplicationConfiguration | Returns the configuration instance. | |
getController ( ) : sfController | Retrieve the controller. | |
getDatabaseConnection ( name $name = 'default' ) : mixed | Retrieve a database connection from the database manager. | |
getDatabaseManager ( ) : sfDatabaseManager | Retrieve the database manager. | |
getEventDispatcher ( ) : sfEventDispatcher | Retrieves the current event dispatcher. | |
getI18N ( ) : sfI18N | Retrieve the i18n instance | |
getInstance ( string $name = null, string $class = __CLASS__ ) : sfContext | Retrieves the singleton instance of this class. | |
getLogger ( ) : sfLogger | Retrieve the logger. | |
getMailer ( ) : sfMailer | Retrieves the mailer. | |
getModuleDirectory ( ) : string | Retrieve the module directory for this context. | |
getModuleName ( ) : string | Retrieve the module name for this context. | |
getRequest ( ) : sfRequest | Retrieve the request. | |
getResponse ( ) : sfResponse | Retrieve the response. | |
getRouting ( ) : sfRouting | Retrieve the routing instance. | |
getService ( string $id ) : object | Retrieves a service from the service container. | |
getServiceContainer ( ) : sfServiceContainer | Retrieves the service container. | |
getStorage ( ) : sfStorage | Retrieve the storage. | |
getUser ( ) : sfUser | Retrieve the user. | |
getViewCacheManager ( ) : sfViewCacheManager | Retrieve the view cache manager | |
has ( string $name ) : boolean | Returns true if an object is currently stored in the current context with the given name, false otherwise. | |
hasInstance ( string $name = null ) : boolean | Checks to see if there has been a context created | |
initialize ( sfApplicationConfiguration $configuration ) | Initializes the current sfContext instance. | |
loadFactories ( ) | Loads the symfony factories. | |
offsetExists ( string $name ) : boolean | Returns true if the context object exists (implements the ArrayAccess interface). | |
offsetGet ( string $name ) : mixed | Returns the context object associated with the name (implements the ArrayAccess interface). | |
offsetSet ( string $offset, string $value ) | Sets the context object associated with the offset (implements the ArrayAccess interface). | |
offsetUnset ( string $offset ) | Unsets the context object associated with the offset (implements the ArrayAccess interface). | |
set ( string $name, object $object ) | Puts an object in the current context. | |
setMailerConfiguration ( array $configuration ) | Set mailer configuration. | |
setResponse ( sfResponse $response ) : void | Set the response object. | |
setServiceContainerConfiguration ( array $config ) | Set service ontainer configuration | |
shutdown ( ) : void | Execute the shutdown procedure. | |
shutdownUserAndStorage ( ) | Shuts the user/storage down. | |
switchTo ( string $name ) | Sets the current context to something else |
public static createInstance ( sfApplicationConfiguration $configuration, string $name = null, string $class = __CLASS__ ) : sfContext | ||
$configuration | sfApplicationConfiguration | An sfApplicationConfiguration instance |
$name | string | A name for this context (application name by default) |
$class | string | The context class to use (sfContext by default) |
Résultat | sfContext | An sfContext instance |
public filterTemplateParameters ( sfEvent $event, array $parameters ) : array | ||
$event | sfEvent | An sfEvent instance |
$parameters | array | An array of template parameters to filter |
Résultat | array | The filtered parameters array |
public getActionName ( ) : string | ||
Résultat | string | The currently executing action name, if one is set, otherwise null. |
public getActionStack ( ) : sfActionStack | ||
Résultat | sfActionStack | the sfActionStack instance |
public getConfigCache ( ) : sfConfigCache | ||
Résultat | sfConfigCache | A sfConfigCache instance |
public getConfiguration ( ) : sfApplicationConfiguration | ||
Résultat | sfApplicationConfiguration | The current application configuration instance |
public getController ( ) : sfController | ||
Résultat | sfController | The current sfController implementation instance. |
public getDatabaseConnection ( name $name = 'default' ) : mixed | ||
$name | name | A database name. |
Résultat | mixed | A database instance. |
public getDatabaseManager ( ) : sfDatabaseManager | ||
Résultat | sfDatabaseManager | The current sfDatabaseManager instance. |
public getEventDispatcher ( ) : sfEventDispatcher | ||
Résultat | sfEventDispatcher | An sfEventDispatcher instance |
public getI18N ( ) : sfI18N | ||
Résultat | sfI18N | The current sfI18N implementation instance. |
public static getInstance ( string $name = null, string $class = __CLASS__ ) : sfContext | ||
$name | string | The name of the sfContext to retrieve. |
$class | string | The context class to use (sfContext by default) |
Résultat | sfContext | An sfContext implementation instance. |
public getLogger ( ) : sfLogger | ||
Résultat | sfLogger | The current sfLogger implementation instance. |
public getMailer ( ) : sfMailer | ||
Résultat | sfMailer | The current sfMailer implementation instance. |
public getModuleDirectory ( ) : string | ||
Résultat | string | An absolute filesystem path to the directory of the currently executing module, if one is set, otherwise null. |
public getModuleName ( ) : string | ||
Résultat | string | The currently executing module name, if one is set, otherwise null. |
public getRequest ( ) : sfRequest | ||
Résultat | sfRequest | The current sfRequest implementation instance. |
public getResponse ( ) : sfResponse | ||
Résultat | sfResponse | The current sfResponse implementation instance. |
public getRouting ( ) : sfRouting | ||
Résultat | sfRouting | The current sfRouting implementation instance. |
public getService ( string $id ) : object | ||
$id | string | The service identifier |
Résultat | object | The service instance |
public getServiceContainer ( ) : sfServiceContainer | ||
Résultat | sfServiceContainer | The current sfServiceContainer implementation instance. |
public getStorage ( ) : sfStorage | ||
Résultat | sfStorage | The current sfStorage implementation instance. |
public getUser ( ) : sfUser | ||
Résultat | sfUser | The current sfUser implementation instance. |
public getViewCacheManager ( ) : sfViewCacheManager | ||
Résultat | sfViewCacheManager | The current sfViewCacheManager implementation instance. |
public static hasInstance ( string $name = null ) : boolean | ||
$name | string | The name of the sfContext to check for |
Résultat | boolean | true is instanced, otherwise false |
public initialize ( sfApplicationConfiguration $configuration ) | ||
$configuration | sfApplicationConfiguration | An sfApplicationConfiguration instance |
public offsetExists ( string $name ) : boolean | ||
$name | string | The name of the context object |
Résultat | boolean | true if the context object exists, false otherwise |
public offsetUnset ( string $offset ) | ||
$offset | string | The parameter name |
public setMailerConfiguration ( array $configuration ) | ||
$configuration | array |
public setResponse ( sfResponse $response ) : void | ||
$response | sfResponse | An sfResponse instance. |
Résultat | void |
public setServiceContainerConfiguration ( array $config ) | ||
$config | array |
public shutdownUserAndStorage ( ) |