Public Member Functions | |
| __construct ($array) | |
| raw ($index) | |
| getArrayCopy () | |
| get_array_copy_raw () | |
| current () | |
| offsetGet ($index) | |
| offsetSet ($index, $value) | |
| merge () | |
| filter_keys () | |
| map ($fn) | |
| rekey ($replacement= '{\$$0}', $search_regex= '/^.*$/') | |
Static Public Member Functions | |
| static | process_gps () |
| static | process_c () |
Protected Member Functions | |
| base_filter ($value) | |
Protected Attributes | |
| $values = array() | |
| $raw_values = array() | |
SuperGlobals class
Definition at line 11 of file superglobal.php.
| SuperGlobal::base_filter | ( | $ | value | ) | [protected] |
Recursively filter array values and strings using InputFilter::filter()
| mixed | $value A value to filter |
Definition at line 154 of file superglobal.php.
Referenced by offsetGet().
| SuperGlobal::current | ( | ) |
Return the current array element, filtered. Implements ArrayIterator::current()
Definition at line 112 of file superglobal.php.
| SuperGlobal::filter_keys | ( | ) |
Filters this SuperGlobal based on an array or arrays of keys
| mixed | An array of key values that should be returned, or a string of a key value to be returned |
Definition at line 224 of file superglobal.php.
| SuperGlobal::get_array_copy_raw | ( | ) |
Return a copy of the unfiltered array.
Definition at line 104 of file superglobal.php.
Referenced by filter_keys(), map(), merge(), offsetGet(), raw(), and rekey().
| SuperGlobal::getArrayCopy | ( | ) |
Return a copy of the filtered array. Implments ArrayIterator::getArrayCopy()
Definition at line 96 of file superglobal.php.
Referenced by get_array_copy_raw().
| SuperGlobal::map | ( | $ | fn | ) |
Apply a map function to this array, like array_map()
| callback | $fn the name of the function to map through |
Definition at line 244 of file superglobal.php.
| SuperGlobal::merge | ( | ) |
Merges the contents of one or more arrays or ArrayObjects with this SuperGlobal
| mixed | One or more array-like structures to merge into this array. |
Definition at line 173 of file superglobal.php.
| SuperGlobal::offsetGet | ( | $ | index | ) |
Return the value of an array offset. Allows the values to be filtered
| mixed | $index The index of the array |
Definition at line 123 of file superglobal.php.
Referenced by current().
| SuperGlobal::offsetSet | ( | $ | index, | |
| $ | value | |||
| ) |
Set the value of the array, clear caches for that index
| mixed | $index The array index | |
| mixed | $value Tha value to store |
Definition at line 141 of file superglobal.php.
| static SuperGlobal::process_c | ( | ) | [static] |
Convert $_COOKIE into SuperGlobal instance
Definition at line 56 of file superglobal.php.
| static SuperGlobal::process_gps | ( | ) | [static] |
Convert $_GET, $_POST and $_SERVER into SuperGlobal instances, also kill $_REQUEST
Definition at line 29 of file superglobal.php.
| SuperGlobal::raw | ( | $ | index | ) |
Return the raw, unfiltered value of the requested index
| mixed | $index The index of the value |
Definition at line 81 of file superglobal.php.
| SuperGlobal::rekey | ( | ) |
Use a regular expression replacement to change the keys in an array
| string | $replacement (optional) The regex replacement value | |
| string | $search_regex (optional) The regex search value |
Definition at line 255 of file superglobal.php.
1.7.1