[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
sfRequest provides methods for manipulating client request information such as attributes, errors and parameters. It is also possible to manipulate the request method originally sent by the user.
Author: | Fabien Potencier <fabien.potencier@symfony-project.com> |
Author: | Sean Kerr <skerr@mojavi.org> |
Version: | SVN: $Id: sfRequest.class.php 3329 2007-01-23 08:29:34Z fabien $ |
Poids: | 442 lignes (10 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
getError($name, $catalogue = 'messages') X-Ref |
Pas de description |
getErrorNames() X-Ref |
Retrieves an array of error names. return: array An indexed array of error names |
getErrors() X-Ref |
Retrieves an array of errors. return: array An associative array of errors |
getMethod() X-Ref |
Retrieves this request's method. return: int One of the following constants: |
hasError($name) X-Ref |
Indicates whether or not an error exists. param: string An error name return: boolean true, if the error exists, otherwise false |
hasErrors() X-Ref |
Indicates whether or not any errors exist. return: boolean true, if any error exist, otherwise false |
initialize($context, $parameters = array() X-Ref |
Initializes this sfRequest. param: sfContext A sfContext instance param: array An associative array of initialization parameters param: array An associative array of initialization attributes return: boolean true, if initialization completes successfully, otherwise false |
getContext() X-Ref |
Retrieves the current application context. return: sfContext Current application context |
newInstance($class) X-Ref |
Retrieves a new sfRequest implementation instance. param: string A sfRequest implementation name return: sfRequest A sfRequest implementation instance |
setError($name, $message) X-Ref |
Pas de description |
setErrors($errors) X-Ref |
Sets an array of errors If an existing error name matches any of the keys in the supplied array, the associated message will be overridden. param: array An associative array of errors and their associated messages |
setMethod($methodCode) X-Ref |
Sets the request method. param: int One of the following constants: return: void |
getParameterHolder() X-Ref |
Retrieves the parameters for the current request. return: sfParameterHolder The parameter holder |
getAttributeHolder() X-Ref |
Retrieves the attributes holder. return: sfParameterHolder The attribute holder |
getAttribute($name, $default = null, $ns = null) X-Ref |
Retrieves an attribute from the current request. param: string Attribute name param: string Default attribute value param: string Namespace for the current request return: mixed An attribute value |
hasAttribute($name, $ns = null) X-Ref |
Indicates whether or not an attribute exist for the current request. param: string Attribute name param: string Namespace for the current request return: boolean true, if the attribute exists otherwise false |
setAttribute($name, $value, $ns = null) X-Ref |
Sets an attribute for the request. param: string Attribute name param: string Value for the attribute param: string Namespace for the current request |
getParameter($name, $default = null, $ns = null) X-Ref |
Retrieves a paramater for the current request. param: string Parameter name param: string Parameter default value param: string Namespace for the current request |
hasParameter($name, $ns = null) X-Ref |
Indicates whether or not a parameter exist for the current request. param: string Parameter name param: string Namespace for the current request return: boolean true, if the paramater exists otherwise false |
setParameter($name, $value, $ns = null) X-Ref |
Sets a parameter for the current request. param: string Parameter name param: string Parameter value param: string Namespace for the current request |
__call($method, $arguments) X-Ref |
Overloads a given method. param: string Method name param: string Method arguments return: mixed User function callback |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |