프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$configuration | |||
$current | |||
$dispatcher | |||
$factories | |||
$hasShutdownUserAndStorage | |||
$instances | |||
$mailerConfiguration | |||
$serviceContainerConfiguration |
메소드 | 설명 | |
---|---|---|
__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) |
리턴 | 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 |
리턴 | array | The filtered parameters array |
public getActionName ( ) : string | ||
리턴 | string | The currently executing action name, if one is set, otherwise null. |
public getActionStack ( ) : sfActionStack | ||
리턴 | sfActionStack | the sfActionStack instance |
public getConfigCache ( ) : sfConfigCache | ||
리턴 | sfConfigCache | A sfConfigCache instance |
public getConfiguration ( ) : sfApplicationConfiguration | ||
리턴 | sfApplicationConfiguration | The current application configuration instance |
public getController ( ) : sfController | ||
리턴 | sfController | The current sfController implementation instance. |
public getDatabaseConnection ( name $name = 'default' ) : mixed | ||
$name | name | A database name. |
리턴 | mixed | A database instance. |
public getDatabaseManager ( ) : sfDatabaseManager | ||
리턴 | sfDatabaseManager | The current sfDatabaseManager instance. |
public getEventDispatcher ( ) : sfEventDispatcher | ||
리턴 | sfEventDispatcher | An sfEventDispatcher instance |
public getI18N ( ) : sfI18N | ||
리턴 | 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) |
리턴 | sfContext | An sfContext implementation instance. |
public getLogger ( ) : sfLogger | ||
리턴 | sfLogger | The current sfLogger implementation instance. |
public getMailer ( ) : sfMailer | ||
리턴 | sfMailer | The current sfMailer implementation instance. |
public getModuleDirectory ( ) : string | ||
리턴 | string | An absolute filesystem path to the directory of the currently executing module, if one is set, otherwise null. |
public getModuleName ( ) : string | ||
리턴 | string | The currently executing module name, if one is set, otherwise null. |
public getRequest ( ) : sfRequest | ||
리턴 | sfRequest | The current sfRequest implementation instance. |
public getResponse ( ) : sfResponse | ||
리턴 | sfResponse | The current sfResponse implementation instance. |
public getRouting ( ) : sfRouting | ||
리턴 | sfRouting | The current sfRouting implementation instance. |
public getService ( string $id ) : object | ||
$id | string | The service identifier |
리턴 | object | The service instance |
public getServiceContainer ( ) : sfServiceContainer | ||
리턴 | sfServiceContainer | The current sfServiceContainer implementation instance. |
public getStorage ( ) : sfStorage | ||
리턴 | sfStorage | The current sfStorage implementation instance. |
public getUser ( ) : sfUser | ||
리턴 | sfUser | The current sfUser implementation instance. |
public getViewCacheManager ( ) : sfViewCacheManager | ||
리턴 | sfViewCacheManager | The current sfViewCacheManager implementation instance. |
public static hasInstance ( string $name = null ) : boolean | ||
$name | string | The name of the sfContext to check for |
리턴 | 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 |
리턴 | 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. |
리턴 | void |
public setServiceContainerConfiguration ( array $config ) | ||
$config | array |