To retrieve data from environnement
Definition at line 10 of file vars.class.php.
◆ __construct()
No direct instanciation for this class
Definition at line 22 of file vars.class.php.
◆ cookie()
cookie |
( |
|
$name, |
|
|
|
$default = null |
|
) |
| |
Get a COOKIE variable
- Parameters
-
string | $name | Variable Name |
| mixed | default: Possibilities array, first values will be the default or default return, if not found |
- Returns
- mixed The found variable or the default value or null
- See also
- getVar
Definition at line 179 of file vars.class.php.
◆ get()
get |
( |
|
$name, |
|
|
|
$default = null |
|
) |
| |
Get a GET variable
- Parameters
-
string | $name | Variable Name |
| mixed | default: Possibilities array, first values will be the default or default return, if not found |
- Returns
- mixed The found variable or the default value or null
- See also
- getVar
Definition at line 149 of file vars.class.php.
◆ getInstance()
◆ gets()
◆ getVar()
Get a variable
- Parameters
-
string | array | $prm | if it's a string, it's the variable name. if it's an array, options avaiable are:
- string name: Variable name
- string nameIn: Variable name in array
- array|string method: Method where to get the variable in order of preference (default: array('post','get')) available are: get, post, session, files or cookie
- mixed default: Possibilities array, first values will be the default or default return, if not found
- bool trim: True if need to automaticly trim the return
|
- Returns
- mixed The found variable or the default value or null
Definition at line 48 of file vars.class.php.
◆ getVars()
getVars |
( |
|
$method = 'post' | ) |
|
Get all type variable of one type
- Parameters
-
String | $method | Method name (get or post) |
- Returns
- array
Definition at line 116 of file vars.class.php.
◆ post()
post |
( |
|
$name, |
|
|
|
$default = null |
|
) |
| |
Get a POST variable
- Parameters
-
string | $name | Variable Name |
| mixed | default: Possibilities array, first values will be the default or default return, if not found |
- Returns
- mixed The found variable or the default value or null
- See also
- getVar
Definition at line 103 of file vars.class.php.
◆ posts()
◆ session()
Get a SESSION variable
- Parameters
-
string | $name | Variable Name |
| mixed | default: Possibilities array, first values will be the default or default return, if not found |
- Returns
- mixed The found variable or the default value or null
- See also
- getVar
Definition at line 164 of file vars.class.php.
◆ $instance
The documentation for this class was generated from the following file: