|
static | get ($name) |
|
static | set ($name, $val) |
|
static | setInArray ($name, $val, $unique=true) |
|
static | check ($name) |
|
To store data available for other object. Same use like globals variables Singleton
Definition at line 12 of file registry.class.php.
◆ __construct()
◆ check()
Check if a variable is registred
- Parameters
-
- Returns
- bool
Definition at line 78 of file registry.class.php.
◆ get()
Get the registred variable
- Parameters
-
string | $name | Value requested |
- Returns
- mixed The value requested, false if it doesn't exists
Definition at line 33 of file registry.class.php.
◆ set()
static set |
( |
|
$name, |
|
|
|
$val |
|
) |
| |
|
static |
Registred a variable
- Parameters
-
string | $name | Name to registred |
mixed | $value | Value to registred |
- Returns
- bool true if sucessful
- Exceptions
-
Definition at line 47 of file registry.class.php.
◆ setInArray()
static setInArray |
( |
|
$name, |
|
|
|
$val, |
|
|
|
$unique = true |
|
) |
| |
|
static |
Add a string in an array registred variable
- Parameters
-
string | $name | Name to registred |
mixed | $value | Value to registred |
bool | $unique | Indicate if the value must be unique |
- Returns
- bool true if sucessful
Definition at line 63 of file registry.class.php.
◆ $vars
The documentation for this class was generated from the following file: