Phalcon filter
NOTE
All classes are prefixed with Phalcon
Filter\Filter¶
-
Namespace
Closure
Phalcon\Filter\Exception
Phalcon\Filter\FilterInterface
-
Uses
-
Extends
-
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 arrayFilter\Exception¶
-
Namespace
Phalcon\Filter
-
Uses
-
Extends
Phalcon\Exception
-
Implements
Phalcon\Filter\Exception
Exceptions thrown in Phalcon\Filter will use this class
Filter\FilterFactory¶
-
Namespace
Phalcon\Filter
-
Uses
Phalcon\Filter
-
Extends
-
Implements
Class FilterFactory
Methods¶
Returns a Locator object with all the helpers defined in anonymous functionsFilter\FilterInterface ¶
-
Namespace
Phalcon\Filter
-
Uses
-
Extends
-
Implements
Lazy loads, stores and exposes sanitizer objects
Methods¶
Sanitizes a value with a specified single or set of sanitizersFilter\Sanitize\AbsInt¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\AbsInt
Sanitizes a value to absolute integer
Methods¶
Filter\Sanitize\Alnum¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Alnum
Sanitizes a value to an alphanumeric value
Methods¶
Filter\Sanitize\Alpha¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Alpha
Sanitizes a value to an alpha value
Methods¶
Filter\Sanitize\BoolVal¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\BoolVal
Sanitizes a value to boolean
Methods¶
Filter\Sanitize\Email¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Email
Sanitizes an email string
Methods¶
Filter\Sanitize\FloatVal¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\FloatVal
Sanitizes a value to float
Methods¶
Filter\Sanitize\IntVal¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\IntVal
Sanitizes a value to integer
Methods¶
Filter\Sanitize\Lower¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Lower
Sanitizes a value to lowercase
Methods¶
Filter\Sanitize\LowerFirst¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\LowerFirst
Sanitizes a value to lcfirst
Methods¶
Filter\Sanitize\Regex¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Regex
Sanitizes a value performing preg_replace
Methods¶
Filter\Sanitize\Remove¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Remove
Sanitizes a value removing parts of a string
Methods¶
Filter\Sanitize\Replace¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Replace
Sanitizes a value replacing parts of a string
Methods¶
Filter\Sanitize\Special¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Special
Sanitizes a value special characters
Methods¶
Filter\Sanitize\SpecialFull¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\SpecialFull
Sanitizes a value special characters (htmlspecialchars() and ENT_QUOTES)
Methods¶
Filter\Sanitize\StringVal¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Sanitizes a value to string
Methods¶
Filter\Sanitize\Striptags¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Striptags
Sanitizes a value striptags
Methods¶
Filter\Sanitize\Trim¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Trim
Sanitizes a value removing leading and trailing spaces
Methods¶
Filter\Sanitize\Upper¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Upper
Sanitizes a value to uppercase
Methods¶
Filter\Sanitize\UpperFirst¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\UpperFirst
Sanitizes a value to ucfirst
Methods¶
Filter\Sanitize\UpperWords¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\UpperWords
Sanitizes a value to uppercase the first character of each word
Methods¶
Filter\Sanitize\Url¶
-
Namespace
Phalcon\Filter\Sanitize
-
Uses
-
Extends
-
Implements
Phalcon\Filter\Sanitize\Url
Sanitizes a value url