Full index

Package indexes


a c e f g i k l m n o p r s t u w _
a
top
AccessorAbstract
AccessorAbstract in AccessorAbstract.php
This is the abstract for user-defined Accessor methods. Accessors are used to
addAccessor
addAccessor
This method lets the developer add new accessor methods to a cage object Note that calling these will be quite a bit slower, because we have to use call_user_func()
AccessorAbstract.php
AccessorAbstract.php in AccessorAbstract.php
c
top
$cage
AccessorAbstract::$cage in AccessorAbstract.php
the cage object this is attached to, provided in the constructor
$cookie
The cookie cage
convertArrayToArrayObject
Converts an array into an ArrayObject. We use ArrayObjects when walking arrays in Inspekt
count
Returns the number of elements in $this->_source.
Cage.php
Cage.php in Cage.php
e
top
$env
Inspekt_Supercage::$env in Supercage.php
The env cage
escMySQL
Inspekt::escMySQL() in Inspekt.php
Escapes the value given with mysql_real_escape_string
escMySQL
escPgSQL
Inspekt::escPgSQL() in Inspekt.php
Escapes the value given with pg_escape_string
escPgSQL
escPgSQLBytea
Escapes the value given with pg_escape_bytea
escPgSQLBytea
Error.php
Error.php in Error.php
f
top
$files
Inspekt_Supercage::$files in Supercage.php
The files cage
Factory
Enter description here...
Factory
Factory
Takes an array and wraps it inside an object. If $strict is not set to FALSE, the original array will be destroyed, and the data can only be accessed via the object's accessor methods
g
top
$get
Inspekt_Supercage::$get in Supercage.php
The get cage
getAlnum
Inspekt::getAlnum() in Inspekt.php
Returns only the alphabetic characters and digits in value.
getAlnum
Returns only the alphabetic characters and digits in value.
getAlpha
Returns only the alphabetic characters in value.
getAlpha
Inspekt::getAlpha() in Inspekt.php
Returns only the alphabetic characters in value.
getDigits
Returns only the digits in value. This differs from getInt().
getDigits
Inspekt::getDigits() in Inspekt.php
Returns only the digits in value.
getDir
Returns dirname(value).
getDir
Inspekt::getDir() in Inspekt.php
Returns dirname(value).
getHTMLPurifier
getInt
Inspekt::getInt() in Inspekt.php
Returns (int) value.
getInt
Returns (int) value.
getIterator
Returns an iterator for looping through an ArrayObject.
getPath
Returns realpath(value).
getPath
Inspekt::getPath() in Inspekt.php
Returns realpath(value).
getPurifiedHTML
This returns the value of the given key passed through the HTMLPurifer object, if it is instantiated with Inspekt_Cage::loadHTMLPurifer
getRaw
Returns value.
getROT13
Returns ROT13-encoded version
getROT13
Inspekt::getROT13() in Inspekt.php
Returns the value encoded as ROT13 (or decoded, if already was ROT13)
getValue
AccessorAbstract::getValue() in AccessorAbstract.php
Retrieves a value from the cage
i
top
inspekt
AccessorAbstract::inspekt() in AccessorAbstract.php
Inspekt
Inspekt in Inspekt.php
Inspekt.php
Inspekt.php in Inspekt.php
Inspekt_Cage
Inspekt_Cage
Inspekt_Cage in Cage.php
Inspekt_Cage_Session
Inspekt_Cage_Session in Session.php
Inspekt_Error
Constructor
Inspekt_Error
Inspekt_Error in Error.php
Error handling for Inspekt
Inspekt_Supercage
Enter description here...
Inspekt_Supercage
Inspekt_Supercage in Supercage.php
The Supercage object wraps ALL of the superglobals
isAlnum
Inspekt::isAlnum() in Inspekt.php
Returns TRUE if every character is alphabetic or a digit, FALSE otherwise.
isAlpha
Inspekt::isAlpha() in Inspekt.php
Returns TRUE if every character is alphabetic, FALSE otherwise.
isArrayObject
Checks to see if this is an ArrayObject
isArrayOrArrayObject
Checks to see if this is an array or an ArrayObject
isBetween
Inspekt::isBetween() in Inspekt.php
Returns TRUE if value is greater than or equal to $min and less than or equal to $max, FALSE otherwise. If $inc is set to FALSE, then the value must be strictly greater than $min and strictly less than $max.
isCcnum
Inspekt::isCcnum() in Inspekt.php
Returns TRUE if it is a valid credit card number format. The optional second argument allows developers to indicate the type.
isDate
Inspekt::isDate() in Inspekt.php
Returns TRUE if value is a valid date, FALSE otherwise. The date is required to be in ISO 8601 format.
isDigits
Inspekt::isDigits() in Inspekt.php
Returns TRUE if every character is a digit, FALSE otherwise.
isEmail
Inspekt::isEmail() in Inspekt.php
Returns TRUE if value is a valid email format, FALSE otherwise.
isFloat
Inspekt::isFloat() in Inspekt.php
Returns TRUE if value is a valid float value, FALSE otherwise.
isGreaterThan
Returns TRUE if value is greater than $min, FALSE otherwise.
isHex
Inspekt::isHex() in Inspekt.php
Returns TRUE if value is a valid hexadecimal format, FALSE otherwise.
isHostname
Inspekt::isHostname() in Inspekt.php
Returns TRUE if value is a valid hostname, FALSE otherwise.
isInt
Inspekt::isInt() in Inspekt.php
Returns TRUE if value is a valid integer value, FALSE otherwise.
isIp
Inspekt::isIp() in Inspekt.php
Returns TRUE if value is a valid IP format, FALSE otherwise.
isLessThan
Inspekt::isLessThan() in Inspekt.php
Returns TRUE if value is less than $max, FALSE otherwise.
isOneOf
Inspekt::isOneOf() in Inspekt.php
Returns TRUE if value is one of $allowed, FALSE otherwise.
isPhone
Inspekt::isPhone() in Inspekt.php
Returns TRUE if value is a valid phone number format, FALSE otherwise. The optional second argument indicates the country.
ISPK_ARRAY_PATH_SEPARATOR
ISPK_DNS_VALID
ISPK_DNS_VALID in Inspekt.php
regex used to define what we're calling a valid domain name
ISPK_EMAIL_VALID
ISPK_EMAIL_VALID in Inspekt.php
regex used to define what we're calling a valid email
ISPK_HOST_ALLOW_ALL
ISPK_HOST_ALLOW_ALL in Inspekt.php
Options for isHostname() that specify which types of hostnames to allow.
ISPK_HOST_ALLOW_DNS
ISPK_HOST_ALLOW_DNS in Inspekt.php
Options for isHostname() that specify which types of hostnames to allow.
ISPK_HOST_ALLOW_IP
ISPK_HOST_ALLOW_IP in Inspekt.php
Options for isHostname() that specify which types of hostnames to allow.
ISPK_HOST_ALLOW_LOCAL
ISPK_HOST_ALLOW_LOCAL in Inspekt.php
Options for isHostname() that specify which types of hostnames to allow.
ISPK_RECURSION_MAX
ISPK_RECURSION_MAX in Cage.php
ISPK_URI_ALLOW_COMMON
ISPK_URI_ALLOW_COMMON in Inspekt.php
Options for isUri that specify which types of URIs to allow.
isRegex
Inspekt::isRegex() in Inspekt.php
Returns TRUE if value matches $pattern, FALSE otherwise. Uses preg_match() for the matching.
isUri
Inspekt::isUri() in Inspekt.php
Enter description here...
isZip
Inspekt::isZip() in Inspekt.php
Returns TRUE if value is a valid US ZIP, FALSE otherwise.
k
top
keyExists
Checks if a key exists
l
top
loadHTMLPurifier
Load the HTMLPurifier library and instantiate the object
m
top
makeCookieCage
Returns the $_COOKIE data wrapped in an Inspekt_Cage object
makeEnvCage
Inspekt::makeEnvCage() in Inspekt.php
Returns the $_ENV data wrapped in an Inspekt_Cage object
makeFilesCage
Returns the $_FILES data wrapped in an Inspekt_Cage object
makeGetCage
Inspekt::makeGetCage() in Inspekt.php
Returns the $_GET data wrapped in an Inspekt_Cage object
makePostCage
Returns the $_POST data wrapped in an Inspekt_Cage object
makeServerCage
Returns the $_SERVER data wrapped in an Inspekt_Cage object
makeSessionCage
Returns the $_SESSION data wrapped in an Inspekt_Cage object
makeSuperCage
Returns a Supercage object, which wraps ALL input superglobals
n
top
noPath
Inspekt::noPath() in Inspekt.php
Returns basename(value).
noPath
Returns basename(value).
noTags
Inspekt::noTags() in Inspekt.php
Returns value with all tags removed.
noTags
Returns value with all tags removed.
noTagsOrSpecial
returns value with tags stripped and the chars '"&<> and all ascii chars under 32 encoded as html entities
noTagsOrSpecial
o
top
offsetExists
Returns whether the $offset exists in $this->_source.
offsetGet
Returns the value at $offset from $this->_source.
offsetSet
Sets the value at the specified $offset to value$ in $this->_source.
offsetUnset
Unsets the value in $this->_source at $offset.
p
top
$post
Inspekt_Supercage::$post in Supercage.php
The post cage
$purifier
r
top
raiseError
Raises an error. In >= PHP5, this will throw an exception. In PHP4, this will trigger a user error.
raiseErrorPHP4
Triggers a user error for PHP4-compatibility
run
AccessorAbstract::run() in AccessorAbstract.php
This executes the accessor on the key, either passed as the only argument, or the first value in $this->args;
s
top
$server
$session
The session cage
Session.php
Session.php in Session.php
Supercage.php
Supercage.php in Supercage.php
setHTMLPurifier
t
top
testAlnum
Returns value if every character is alphabetic or a digit, FALSE otherwise.
testAlpha
Returns value if every character is alphabetic, FALSE otherwise.
testBetween
Returns value if it is greater than or equal to $min and less than or equal to $max, FALSE otherwise. If $inc is set to FALSE, then the value must be strictly greater than $min and strictly less than $max.
testCcnum
Returns value if it is a valid credit card number format. The optional second argument allows developers to indicate the type.
testDate
Returns $value if it is a valid date, FALSE otherwise. The date is required to be in ISO 8601 format.
testDigits
Returns value if every character is a digit, FALSE otherwise.
testEmail
Returns value if it is a valid email format, FALSE otherwise.
testFloat
Returns value if it is a valid float value, FALSE otherwise.
testGreaterThan
Returns value if it is greater than $min, FALSE otherwise.
testHex
Returns value if it is a valid hexadecimal format, FALSE otherwise.
testHostname
Returns value if it is a valid hostname, FALSE otherwise.
testInt
Returns value if it is a valid integer value, FALSE otherwise.
testIp
Returns value if it is a valid IP format, FALSE otherwise.
testLessThan
Returns value if it is less than $max, FALSE otherwise.
testOneOf
Returns value if it is one of $allowed, FALSE otherwise.
testPhone
Returns value if it is a valid phone number format, FALSE otherwise. The optional second argument indicates the country.
testRegex
Returns value if it matches $pattern, FALSE otherwise. Uses preg_match() for the matching.
testUri
Enter description here...
testZip
Returns value if it is a valid US ZIP, FALSE otherwise.
u
top
$useFilterExtension
useFilterExt
Sets and/or retrieves whether we should use the PHP filter extensions where possible If a param is passed, it will set the state in addition to returning it
w
top
walkArray
AccessorAbstract::walkArray() in AccessorAbstract.php
If an array is the value of the given key, this method walks the array recursively, applying $this->inspekt on any non-array values
_
top
$_autofilter_conf
the holding property for autofilter config
$_source
$_user_accessors
where we store user-defined methods
_applyAutoFilters
_buildHTMLPurifierConfig
_getValue
Retrieves a value from the _source array. This should NOT be called directly, but needs to be public for use by AccessorAbstract. Maybe a different approach should be considered
_getValueRecursive
_keyExistsRecursive
_makeCages
Enter description here...
_parseAndApplyAutoFilters
_repopulateSession
_setValue
Sets a value in the _source array
_setValueRecursive
_walkArray
Inspekt::_walkArray() in Inspekt.php
Recursively walks an array and applies a given filter method to every value in the array.
__call
__construct
AccessorAbstract::__construct() in AccessorAbstract.php
constructor
a c e f g i k l m n o p r s t u w _