rss Utility

utilityEncrypt

Provides a simple wrapper around mcrypt functions to perform encryption and decryption duties. This class is designed to use the Rijndael 256bit encryption scheme. To use other schemes, extend and replace the various methods. The key that is used sho... More »

Posted in Utility on 05 Aug 2010 @ 03:03


utilityStopWatch

A class for recording the time an event took place during a script execution. Useful for profiling or benchmarking long running scripts or to simply time the execution time between two points. Supports "split" times, where a split can be marked with... More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityTextFilter

to filter HTML text strings to remove dangerous tags. This class was created by Daniel Morris , with contributions from: Gianpaolo Racca, Ghislain Picard, Marco Wandschneider, Chris Tobin and Andrew Eddie. Changes made for Scorpio: Updated and correc... More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidator

Aggregates various validators and allows an array of data to be validated in one go. This is ideal for handling form data or data that is in an associative array of key => value pairs. The data to be validated needs to have a string key that identifi... More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateAbstract

Abstract supertype for validators. Implements the validate interface and provides additional methods and options for templated error messages and translation support. This class should be extended into the specific validate class. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateDateTime

Validates that a variable is composed of a valid date and time. This validator uses both utilityValidateDate and utilityValidateTime validators. All options supported by those validators can be used with dateTime. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateEmailAddress

Validates that a variable is a valid email address. This validator uses the PHP filter_var::VALIDATE_EMAIL with an additional check to catch cases such as m More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateEqual

Validates that a variable is equal to a preset value for example the entered Captcha code is the same as the stored captcha code. Note: this validator checks for a value not identity. To check if an object or array equals a value use utilityValidateI... More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateFloat

Validates that a variable is a float and optionally falls within a range. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateIdentical

Validates that a variable is identical (===) a preset value. This validator can be used with arrays and objects. Note: to check simply strings or numbers consider utilityValidateEqual or utilityValidateRegex. More »

Posted in Utility on 19 Nov 2009 @ 20:39

utilityValidateInArray

Validates that a variable is not empty, i.e. it has a value that can be considered as "empty": 0, "0", "", null, "null", false etc. are all considered to be "empty". More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateInterface

Defines the validator interface for each validator component. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateIpAddress

Validates that the variable is a valid IP address. Supports both IPv4 and IPv6 validation. This validator uses the PHP filter_var::VALIDATE_IP to perform validation. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateNotEmpty

Validates that a variable is not empty, i.e. it has a value that can be considered as "empty": 0, "0", "", null, "null", false etc. are all considered to be "empty". More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateNumber

Validates that a variable is a number and optionally falls within a range. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateObject

Validates that a variable is an object, and optional is an instance of a specific type, or implements a specific interface. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidatePassword

Validates that a password conforms to a pattern (regex) and is a minimum length. Validation is performed by the string and regex validators. This validator can therefore accept any options for those two validators. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityValidateUsername

Validates that a username conforms to a certain format. Validation is performed using the string and regex validators and can therefore accept any options that they can. More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityStringFunction

This class load the string functions needed throughout the system More »

Posted in Utility on 19 Nov 2009 @ 20:39


utilityXmlFunction

Provides some utility methods for fetching values from XML objects More »

Posted in Utility on 19 Nov 2009 @ 20:39