Static Public Member Functions | |
| static | get ($name) |
| static | set ($name, $val) |
| static | setInArray ($name, $val, $unique=true) |
| static | check ($name) |
Private Member Functions | |
| __construct () | |
Static Private Attributes | |
| static | $vars = array() |
To store data available for other object. Same use like globals variables Singleton
Definition at line 12 of file registry.class.php.
| __construct | ( | ) | [private] |
No instanciation for this class
Definition at line 25 of file registry.class.php.
| static check | ( | $ | name | ) | [static] |
Check if a variable is registred
| string | $name Value to test |
Definition at line 78 of file registry.class.php.
| static get | ( | $ | name | ) | [static] |
Get the registred variable
| string | $name Value requested |
Definition at line 33 of file registry.class.php.
| static set | ( | $ | name, | |
| $ | val | |||
| ) | [static] |
Registred a variable
| string | $name Name to registred | |
| mixed | $value Value to registred |
| nException | If the $name alreadey exists |
Definition at line 47 of file registry.class.php.
| static setInArray | ( | $ | name, | |
| $ | val, | |||
| $ | unique = true | |||
| ) | [static] |
Add a string in an array registred variable
| string | $name Name to registred | |
| mixed | $value Value to registred | |
| bool | $unique Indicate if the value must be unique |
Definition at line 63 of file registry.class.php.
$vars = array() [static, private] |
Definition at line 20 of file registry.class.php.
1.7.1