ZendUtility class for common functions.
Located in /Zend.php (line 37)
static compareVersion (line 414)
Compare the specified ZF $version with the current Zend::VERSION of the ZF.
static dump (line 378)
Debug helper function. This is a wrapper for var_dump() that adds the <pre /> tags, cleans up newlines and indents, and runs htmlentities() before output.
static exception (line 248)
Return a new exception
Loads an exception class as specified by $class, and then passes the message and code arguments to the Exception's constructor, returning the new Exception object.
If the exception created is not a true Exception, throws a Zend_Exception indicating an invalid exception class was passed.
Usage:
static initRegistry (line 327)
Initialize the registry. Invoking this method more than once will generate an exception.
static isReadable (line 202)
Returns TRUE if the $filename is readable, or FALSE otherwise. This function uses the PHP include_path, where PHP's is_readable() does not.
static isRegistered (line 309)
Returns TRUE if the $index is a named value in the registry, or FALSE if $index was not found in the registry.
static loadClass (line 69)
Loads a class from a PHP file. The filename must be formatted as "$class.php".
If $dirs is a string or an array, it will search the directories in the order supplied, and attempt to load the first matching file.
If $dirs is null, it will split the class name at underscores to generate a path hierarchy (e.g., "Zend_Example_Class" will map to "Zend/Example/Class.php").
If the file was not found in the $dirs, or if no $dirs were specified, it will attempt to load it from PHP's include_path.
static loadFile (line 144)
Loads a PHP file. This is a wrapper for PHP's include() function.
$filename must be the complete filename, including any extension such as ".php". Note that a security check is performed that does not permit extended characters in the filename. This method is intended for loading Zend Framework files.
If $dirs is a string or an array, it will search the directories in the order supplied, and attempt to load the first matching file.
If the file was not found in the $dirs, or if no $dirs were specified, it will attempt to load it from PHP's include_path.
If $once is TRUE, it will use include_once() instead of include().
static loadInterface (line 117)
Loads an interface from a PHP file
static register (line 271)
offsetSet stores $newval at key $index
static registry (line 292)
registry() retrieves the value stored at an index.
If the $index argument is NULL or not specified, this method returns the registry object (iterable).
static __unsetRegistry (line 363)
primarily for tearDown() in unit tests
Documentation generated on Wed, 21 Feb 2007 12:01:39 -0800 by phpDocumentor 1.3.1