WireInputData::array() WireInputData::array($varName) WireInputData::array($varName, $sanitizer = null) | array | Sanitize array or CSV String to an array, optionally running elements through specified $sanitizer. | |
WireInputData::bool() WireInputData::bool($varName) WireInputData::bool($varName) | bool | Sanitize value to boolean (true or false) | |
WireInputData::callUnknown() WireInputData::callUnknown(string $method, array $arguments) WireInputData::callUnknown(string $method, array $arguments) | string int array float null | Maps to Sanitizer functions | |
WireInputData::count() WireInputData::count() WireInputData::count() | None | | |
WireInputData::date() WireInputData::date($varName, $dateFormat) WireInputData::date($varName, $dateFormat) | string | Validate and return $varName in the given PHP date() or strftime() format. | |
WireInputData::email() WireInputData::email($varName) WireInputData::email($varName) | string | Sanitize email address, converting to blank if invalid | |
| string | Sanitize string for use in an email header | |
WireInputData::entities() WireInputData::entities($varName) WireInputData::entities($varName) | string | Return an entity encoded version of the value | |
WireInputData::fieldName() WireInputData::fieldName($varName) WireInputData::fieldName($varName) | string | Sanitize to ProcessWire Field name format | |
WireInputData::filename() WireInputData::filename($varName) WireInputData::filename($varName) | string | Sanitize to valid file basename as used by filenames in ProcessWire | |
WireInputData::find() WireInputData::find(string $pattern) WireInputData::find(string $pattern, array $options = []) | array | Find all input vars that match given pattern in name (or optionally value) | |
WireInputData::findOne() WireInputData::findOne(string $pattern) WireInputData::findOne(string $pattern, $options = []) | string int float array null | Find one input var that matches given pattern in name (or optionally value) | |
WireInputData::float() WireInputData::float($varName) WireInputData::float($varName, $min = null, $max = null, $precision = null) | float | Sanitize value to float with optional min and max values. | |
WireInputData::get() WireInputData::get(string $key) WireInputData::get(string $key, $options = []) | string int float array null | Get a value | |
WireInputData::getArray() WireInputData::getArray() WireInputData::getArray() | array | Get associative array of all input variables | |
WireInputData::getIterator() WireInputData::getIterator() WireInputData::getIterator() | None | | |
WireInputData::int() WireInputData::int($varName) WireInputData::int($varName, $min = 0, $max = null) | int | Sanitize value to integer with optional min and max. Unsigned if max >= 0, signed if max < 0. | |
WireInputData::intArray() WireInputData::intArray($varName) WireInputData::intArray($varName, $min = 0, $max = null) | array | Sanitize array or CSV string to an array of integers with optional min and max values. | |
WireInputData::intSigned() WireInputData::intSigned($varName) WireInputData::intSigned($varName, $min = null, $max = null) | int | Sanitize value to signed integer with optional min and max. | |
WireInputData::intUnsigned() WireInputData::intUnsigned($varName) WireInputData::intUnsigned($varName, $min = null, $max = null) | int | Sanitize value to unsigned integer with optional min and max. | |
WireInputData::name() WireInputData::name($varName) WireInputData::name($varName) | string | Sanitize to ProcessWire name format | |
WireInputData::offsetExists() WireInputData::offsetExists($key) WireInputData::offsetExists($key) | None | | |
WireInputData::offsetGet() WireInputData::offsetGet($key) WireInputData::offsetGet($key) | None | | |
WireInputData::offsetSet() WireInputData::offsetSet($key, $value) WireInputData::offsetSet($key, $value) | None | | |
WireInputData::offsetUnset() WireInputData::offsetUnset($key) WireInputData::offsetUnset($key) | None | | |
WireInputData::option() WireInputData::option($varName, array $allowedValues) WireInputData::option($varName, array $allowedValues) | string null | Return value of $varName only if it exists in $allowedValues. | |
WireInputData::options() WireInputData::options($varName, array $allowedValues) WireInputData::options($varName, array $allowedValues) | array | Return all values in array $varName that also exist in $allowedValues. | |
WireInputData::pageName() WireInputData::pageName($varName) WireInputData::pageName($varName) | string | Sanitize to ProcessWire Page name format | |
WireInputData::pageNameTranslate() WireInputData::pageNameTranslate($varName) WireInputData::pageNameTranslate($varName) | string | Sanitize to ProcessWire Page name format with translation of non-ASCII characters to ASCII equivalents | |
WireInputData::pagePathName() WireInputData::pagePathName($varName) WireInputData::pagePathName($varName) | string | Sanitize to what could be a valid page path in ProcessWire | |
WireInputData::purify() WireInputData::purify($varName) WireInputData::purify($varName) | string | Return a value run through HTML Purifier (value assumed to contain HTML) | |
WireInputData::remove() WireInputData::remove(string $key) WireInputData::remove(string $key) | $this | Remove a value from input | |
WireInputData::removeAll() WireInputData::removeAll() WireInputData::removeAll() | $this | Remove all values from input | |
WireInputData::selectorField() WireInputData::selectorField($varName) WireInputData::selectorField($varName) | string | Sanitize a field name for use in a selector string | |
WireInputData::selectorValue() WireInputData::selectorValue($varName) WireInputData::selectorValue($varName) | string | Sanitize a value for use in a selector string | |
WireInputData::set() WireInputData::set(string $key, $value) WireInputData::set(string $key, $value, $options = []) | $this | Set a value | |
WireInputData::setArray() WireInputData::setArray(array $input) WireInputData::setArray(array $input) | $this | Set associative array of variables to store | |
WireInputData::setStripSlashes() WireInputData::setStripSlashes($stripSlashes) WireInputData::setStripSlashes($stripSlashes) | None | Set whether or not slashes should be stripped | |
WireInputData::string() WireInputData::string($varName) WireInputData::string($varName) | string | Return a value guaranteed to be a string, regardless of what type $varName is. Does not sanitize. | |
WireInputData::templateName() WireInputData::templateName($varName) WireInputData::templateName($varName) | string | Sanitize to ProcessWire Template name format | |
WireInputData::text() WireInputData::text($varName) WireInputData::text($varName, $options = []) | string | Sanitize to single line of text up to 255 characters (1024 bytes max), HTML markup is removed | |
WireInputData::textarea() WireInputData::textarea($varName) WireInputData::textarea($varName) | string | Sanitize to multi-line text up to 16k characters (48k bytes), HTML markup is removed | |
WireInputData::url() WireInputData::url($varName) WireInputData::url($varName) | string | Sanitize to a valid URL, or convert to blank if it can't be sanitized | |
WireInputData::varName() WireInputData::varName($varName) WireInputData::varName($varName) | string | Sanitize to PHP variable name format | |