[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/util/ -> sfContext.class.php (sommaire)

(pas de description)

Poids: 331 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfContext:: (22 méthodes):
  removeInstance()
  initialize()
  getInstance()
  hasInstance()
  getActionName()
  getActionStack()
  getController()
  getLogger()
  getDatabaseConnection()
  retrieveObjects()
  getDatabaseManager()
  getModuleDirectory()
  getModuleName()
  getCurrentViewInstance()
  getRequest()
  getResponse()
  setResponse()
  getStorage()
  getViewCacheManager()
  getI18N()
  getUser()
  shutdown()


Classe: sfContext  - X-Ref

sfContext provides information about the current application context, such as
the module and action names and the module directory. References to the
current controller, request, and user implementation instances are also
provided.

removeInstance()   X-Ref
Removes current sfContext instance

This method only exists for testing purpose. Don't use it in your application code.

initialize()   X-Ref
Pas de description

getInstance()   X-Ref
Retrieve the singleton instance of this class.

return: sfContext A sfContext implementation instance.

hasInstance()   X-Ref
Pas de description

getActionName()   X-Ref
Retrieve the action name for this context.

return: string The currently executing action name, if one is set,

getActionStack()   X-Ref
Retrieve the ActionStack.

return: sfActionStack the sfActionStack instance

getController()   X-Ref
Retrieve the controller.

return: sfController The current sfController implementation instance.

getLogger()   X-Ref
Pas de description

getDatabaseConnection($name = 'default')   X-Ref
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.

param: name A database name.
return: mixed A Database instance.

retrieveObjects($class, $peerMethod)   X-Ref
Pas de description

getDatabaseManager()   X-Ref
Retrieve the database manager.

return: sfDatabaseManager The current sfDatabaseManager instance.

getModuleDirectory()   X-Ref
Retrieve the module directory for this context.

return: string An absolute filesystem path to the directory of the

getModuleName()   X-Ref
Retrieve the module name for this context.

return: string The currently executing module name, if one is set,

getCurrentViewInstance()   X-Ref
Retrieve the curretn view instance for this context.

return: sfView The currently view instance, if one is set,

getRequest()   X-Ref
Retrieve the request.

return: sfRequest The current sfRequest implementation instance.

getResponse()   X-Ref
Retrieve the response.

return: sfResponse The current sfResponse implementation instance.

setResponse($response)   X-Ref
Set the response object.

param: sfResponse A sfResponse instance.
return: void.

getStorage()   X-Ref
Retrieve the storage.

return: sfStorage The current sfStorage implementation instance.

getViewCacheManager()   X-Ref
Retrieve the view cache manager

return: sfViewCacheManager The current sfViewCacheManager implementation instance.

getI18N()   X-Ref
Retrieve the i18n instance

return: sfI18N The current sfI18N implementation instance.

getUser()   X-Ref
Retrieve the user.

return: sfUser The current sfUser implementation instance.

shutdown()   X-Ref
Execute the shutdown procedure.

return: void



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7