Public Member Functions | |
| getVar ($prm) | |
| post ($name, $default=null) | |
| getVars ($method='post') | |
| posts () | |
| gets () | |
| get ($name, $default=null) | |
| session ($name, $default=null) | |
| cookie ($name, $default=null) | |
Static Public Member Functions | |
| static | getInstance () |
Private Member Functions | |
| __construct () | |
Static Private Attributes | |
| static | $instance |
To retrieve data from environnement
Definition at line 10 of file vars.class.php.
| __construct | ( | ) | [private] |
No direct instanciation for this class
Definition at line 22 of file vars.class.php.
| cookie | ( | $ | name, | |
| $ | default = null | |||
| ) |
Get a COOKIE variable
| string | $name Variable Name | |
| mixed | default: Possibilities array, first values will be the default or default return, if not found |
Definition at line 179 of file vars.class.php.
| get | ( | $ | name, | |
| $ | default = null | |||
| ) |
Get a GET variable
| string | $name Variable Name | |
| mixed | default: Possibilities array, first values will be the default or default return, if not found |
Definition at line 149 of file vars.class.php.
| static getInstance | ( | ) | [static] |
Get the unique session instance
Definition at line 29 of file vars.class.php.
| gets | ( | ) |
| getVar | ( | $ | prm | ) |
Get a variable
| string|array | $prm if it's a string, it's the variable name. if it's an array, options avaiable are:
|
Definition at line 48 of file vars.class.php.
| getVars | ( | $ | method = 'post' |
) |
Get all type variable of one type
| String | $method Method name (get or post) |
Definition at line 116 of file vars.class.php.
| post | ( | $ | name, | |
| $ | default = null | |||
| ) |
Get a POST variable
| string | $name Variable Name | |
| mixed | default: Possibilities array, first values will be the default or default return, if not found |
Definition at line 103 of file vars.class.php.
| posts | ( | ) |
Get all post variables
Definition at line 127 of file vars.class.php.
| session | ( | $ | name, | |
| $ | default = null | |||
| ) |
Get a SESSION variable
| string | $name Variable Name | |
| mixed | default: Possibilities array, first values will be the default or default return, if not found |
Definition at line 164 of file vars.class.php.
$instance [static, private] |
Definition at line 17 of file vars.class.php.
1.7.1