![]() |
Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
PHP functions used a to work with strings. More...
Go to the source code of this file.
Functions | |
| cleanInput ($method, $name, $type, $opts=array()) | |
| Sanitize user inputs. | |
| cleanInputArray ($method, $name, $type=null, $opts=array()) | |
| Sanitize user array inputs. | |
| cleanVar ($var, $type, $opts=array()) | |
| Clean variables. | |
| htmlInput ($string) | |
| Prepares a string which has to be inserted in an input field. | |
| htmlVar ($string) | |
| Filters text coming from database before rendering it in the html document. | |
| jsVar ($string) | |
| Javascript variable escaping. | |
| sanitizeHtml ($html) | |
| Sanitize html content. | |
PHP functions used a to work with strings.
Definition in file varFilters.php.
| cleanInput | ( | $ | method, |
| $ | name, | ||
| $ | type, | ||
| $ | opts = array() |
||
| ) |
Sanitize user inputs.
| string | $method | input method ('get', 'post' or 'request') |
| string | $name | input name |
| string | $type | input type ('string', 'int', 'float', 'date', 'datetime', 'email', 'html') |
| array | $opts | associative array of options:
|
Definition at line 41 of file varFilters.php.
Here is the call graph for this function:
Here is the caller graph for this function:| cleanInputArray | ( | $ | method, |
| $ | name, | ||
| $ | type = null, |
||
| $ | opts = array() |
||
| ) |
Sanitize user array inputs.
| string | $method | input method ('get', 'post' or 'request') |
| string | $name | input name |
| string | $type | input array elements type ('string', 'int', 'float') |
| array | $opts | associative array of options:
|
Definition at line 110 of file varFilters.php.
Here is the call graph for this function:
Here is the caller graph for this function:| cleanVar | ( | $ | var, |
| $ | type, | ||
| $ | opts = array() |
||
| ) |
Clean variables.
| mixed | $var | variable to clean |
| string | $type | variable type |
| array | $opts | associative array of options |
Definition at line 26 of file varFilters.php.
Here is the caller graph for this function:| htmlInput | ( | $ | string | ) |
Prepares a string which has to be inserted in an input field.
| string | $string | string to prepare |
Definition at line 186 of file varFilters.php.
Here is the caller graph for this function:| htmlVar | ( | $ | string | ) |
Filters text coming from database before rendering it in the html document.
| string | $string | string to filter |
Definition at line 176 of file varFilters.php.
Here is the caller graph for this function:| jsVar | ( | $ | string | ) |
Javascript variable escaping.
Escapes strings that has to be used as javascript variables
| string | $string | string to escape |
Definition at line 199 of file varFilters.php.
Here is the caller graph for this function:| sanitizeHtml | ( | $ | html | ) |
Sanitize html content.
| string | $html | html string |
Definition at line 158 of file varFilters.php.