[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 195 lignes (6 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Horde_Token:: (9 méthodes):
Horde_Token()
encodeRemoteAddress()
generateId()
verify()
exists()
add()
purge()
factory()
singleton()
Classe: Horde_Token - X-Ref
The Horde_Token:: class provides a common abstracted interface into theHorde_Token($params = array() X-Ref |
Constructor. param: array $params A hash containing parameters. |
encodeRemoteAddress() X-Ref |
Pas de description |
generateId($seed = '') X-Ref |
Generates a connection id and returns it. param: string $seed A unique ID to be included in the token, return: string The generated id string. |
verify($token) X-Ref |
Checks if the given token has been previously used. First purges all expired tokens. Then retrieves current tokens for the given ip address. If the specified token was not found, adds it. param: string $token The value of the token to check. return: boolean True if the token has not been used, |
exists() X-Ref |
This is an abstract method that should be overridden by a subclass implementation. The base implementation allows all token values. |
add() X-Ref |
This is an abstract method that should be overridden by a subclass implementation. The base implementation allows all token values. |
purge() X-Ref |
This is an abstract method that should be overridden by a subclass implementation. The base implementation allows all token values. |
factory($driver, $params = array() X-Ref |
Attempts to return a concrete Horde_Token instance based on $driver. param: mixed $driver The type of concrete Horde_Token subclass to param: array $params A hash containing any additional configuration or return: Horde_Token The newly created concrete Horde_Token instance, or |
singleton($driver, $params = array() X-Ref |
Attempts to return a reference to a concrete Horde_Token instance based on $driver. It will only create a new instance if no Horde_Token instance with the same parameters currently exists. This should be used if multiple types of token generators (and, thus, multiple Horde_Token instances) are required. This method must be invoked as: <code>$var = &Horde_Token::singleton();</code> param: mixed $driver The type of concrete Horde_Token subclass to param: array $params A hash containing any additional configuration or return: Horde_Token The concrete Horde_Token reference, or false on |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |