- Phalcon\Filter
- Phalcon\Filter\Exception
- Phalcon\Filter\FilterFactory
- Phalcon\Filter\FilterInterface
- Phalcon\Filter\Sanitize\AbsInt
- Phalcon\Filter\Sanitize\Alnum
- Phalcon\Filter\Sanitize\Alpha
- Phalcon\Filter\Sanitize\BoolVal
- Phalcon\Filter\Sanitize\Email
- Phalcon\Filter\Sanitize\FloatVal
- Phalcon\Filter\Sanitize\IntVal
- Phalcon\Filter\Sanitize\Lower
- Phalcon\Filter\Sanitize\LowerFirst
- Phalcon\Filter\Sanitize\Regex
- Phalcon\Filter\Sanitize\Remove
- Phalcon\Filter\Sanitize\Replace
- Phalcon\Filter\Sanitize\Special
- Phalcon\Filter\Sanitize\SpecialFull
- Phalcon\Filter\Sanitize\StringVal
- Phalcon\Filter\Sanitize\Striptags
- Phalcon\Filter\Sanitize\Trim
- Phalcon\Filter\Sanitize\Upper
- Phalcon\Filter\Sanitize\UpperFirst
- Phalcon\Filter\Sanitize\UpperWords
- Phalcon\Filter\Sanitize\Url
Class Phalcon\Filter
| Namespace | Phalcon | | Uses | Closure, Phalcon\Filter\Exception, Phalcon\Filter\FilterInterface | | Implements | FilterInterface |
Lazy loads, stores and exposes sanitizer objects
Constants¶
const FILTER_ABSINT = absint;
const FILTER_ALNUM = alnum;
const FILTER_ALPHA = alpha;
const FILTER_BOOL = bool;
const FILTER_EMAIL = email;
const FILTER_FLOAT = float;
const FILTER_INT = int;
const FILTER_LOWER = lower;
const FILTER_LOWERFIRST = lowerFirst;
const FILTER_REGEX = regex;
const FILTER_REMOVE = remove;
const FILTER_REPLACE = replace;
const FILTER_SPECIAL = special;
const FILTER_SPECIALFULL = specialFull;
const FILTER_STRING = string;
const FILTER_STRIPTAGS = striptags;
const FILTER_TRIM = trim;
const FILTER_UPPER = upper;
const FILTER_UPPERFIRST = upperFirst;
const FILTER_UPPERWORDS = upperWords;
const FILTER_URL = url;
Properties¶
Methods¶
Key value pairs with name as the key and a callable as the value for the service object Get a service. If it is not in the mapper array, create a new object, set it and then return it. Checks if a service exists in the map array Sanitizes a value with a specified single or set of sanitizers Set a new service to the mapper array Loads the objects in the internal mapper arrayClass Phalcon\Filter\Exception
| Namespace | Phalcon\Filter | | Extends | \Phalcon\Exception |
Phalcon\Filter\Exception
Exceptions thrown in Phalcon\Filter will use this class
Class Phalcon\Filter\FilterFactory
| Namespace | Phalcon\Filter | | Uses | Phalcon\Filter |
This file is part of the Phalcon Framework.
(c) Phalcon Team team@phalcon.io
For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.
Methods¶
Returns a Locator object with all the helpers defined in anonymous functionsInterface Phalcon\Filter\FilterInterface
| Namespace | Phalcon\Filter |
Lazy loads, stores and exposes sanitizer objects
Methods¶
Sanitizes a value with a specified single or set of sanitizersClass Phalcon\Filter\Sanitize\AbsInt
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\AbsInt
Sanitizes a value to absolute integer
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Alnum
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Alnum
Sanitizes a value to an alphanumeric value
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Alpha
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Alpha
Sanitizes a value to an alpha value
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\BoolVal
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\BoolVal
Sanitizes a value to boolean
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Email
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Email
Sanitizes an email string
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\FloatVal
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\FloatVal
Sanitizes a value to float
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\IntVal
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\IntVal
Sanitizes a value to integer
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Lower
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Lower
Sanitizes a value to lowercase
Methods¶
@var string input The text to sanitizeClass Phalcon\Filter\Sanitize\LowerFirst
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\LowerFirst
Sanitizes a value to lcfirst
Methods¶
@var string input The text to sanitizeClass Phalcon\Filter\Sanitize\Regex
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Regex
Sanitizes a value performing preg_replace
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Remove
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Remove
Sanitizes a value removing parts of a string
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Replace
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Replace
Sanitizes a value replacing parts of a string
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Special
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Special
Sanitizes a value special characters
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\SpecialFull
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\SpecialFull
Sanitizes a value special characters (htmlspecialchars() and ENT_QUOTES)
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\StringVal
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\String
Sanitizes a value to string
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Striptags
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Striptags
Sanitizes a value striptags
Methods¶
@var string input The text to sanitizeClass Phalcon\Filter\Sanitize\Trim
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Trim
Sanitizes a value removing leading and trailing spaces
Methods¶
@var mixed input The text to sanitizeClass Phalcon\Filter\Sanitize\Upper
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Upper
Sanitizes a value to uppercase
Methods¶
@var string input The text to sanitizeClass Phalcon\Filter\Sanitize\UpperFirst
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\UpperFirst
Sanitizes a value to ucfirst
Methods¶
@var string input The text to sanitizeClass Phalcon\Filter\Sanitize\UpperWords
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\UpperWords
Sanitizes a value to uppercase the first character of each word
Methods¶
@var string input The text to sanitizeClass Phalcon\Filter\Sanitize\Url
| Namespace | Phalcon\Filter\Sanitize |
Phalcon\Filter\Sanitize\Url
Sanitizes a value url