| [ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 156 lignes (4 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 4 fois |
| Nécessite: | 0 fichiers |
Properties:: (10 méthodes):
Properties()
setValue()
getValue()
getFilteredValue()
registerFilter()
toString()
getAsArray()
getKeys()
getValues()
keyExists()
Classe: Properties - X-Ref
\ingroup Config| Properties( $values = null ) X-Ref |
| Constructor. param: values If $values == null, then the object will be initialized empty. |
| setValue( $key, $value ) X-Ref |
| Sets a value in our hash table. param: key Name of the value in the hash table param: value Value that we want to assign to the key '$key' |
| getValue( $key, $defaultValue = null, $filterClass = null ) X-Ref |
| Returns the value associated to a key param: key Key whose value we want to fetch param: defaultValue value that we should return in case the one we're looking for param: filterClass An instance of an object implementing the FilterBase interface that return: Value associated to that key |
| getFilteredValue( $key, $filterClass, $defaultValue = null ) X-Ref |
| This method is an alias for Properties::getValue() but the filter class is now a mandatory parameter param: key Key whose value we want to fetch param: filterClass An instance of an object implementing the FilterBase interface that param: defaultValue value that we should return in case the one we're looking for return: Value associated to that key |
| registerFilter( $key, &$filterClass ) X-Ref |
| Registers a filter class for the key "$key", so that every time Properties::getValue( "$key" ) is called to fetch the requested value, the filter will be applied automatically without the need to specify the filter class at every call param: key param: filterClass |
| toString() X-Ref |
| Method overwritten from the Object class return: Returns a nicer representation of our contents |
| getAsArray() X-Ref |
| Returns the internal arrary used to store the properties as a PHP array return: Internal array as a PHP array |
| getKeys() X-Ref |
| Returns an array containing all the keys used return: Array containing all the keys |
| getValues() X-Ref |
| Returns an array containing the values return: Array containing the values |
| keyExists( $key ) X-Ref |
| returns whether a given key exists in the table param: key The key name return: True if the key exists, false otherwise |
| Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
|