[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
Copyright: | Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
License: | http://framework.zend.com/license/new-bsd New BSD License |
Version: | $Id$ |
File Size: | 329 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Zend_Loader:: (8 methods):
loadClass()
loadFile()
isReadable()
explodeIncludePath()
autoload()
registerAutoload()
_securityCheck()
_includeFile()
Class: Zend_Loader - X-Ref
Static methods for loading classes and files.loadClass($class, $dirs = null) X-Ref |
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. param: string $class - The full class name of a Zend component. param: string|array $dirs - OPTIONAL Either a path or an array of paths return: void |
loadFile($filename, $dirs = null, $once = false) X-Ref |
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(). param: string $filename param: string|array $dirs - OPTIONAL either a path or array of paths param: boolean $once return: boolean |
isReadable($filename) X-Ref |
Returns TRUE if the $filename is readable, or FALSE otherwise. This function uses the PHP include_path, where PHP's is_readable() does not. Note from ZF-2900: If you use custom error handler, please check whether return value from error_reporting() is zero or not. At mark of fopen() can not suppress warning if the handler is used. param: string $filename return: boolean |
explodeIncludePath($path = null) X-Ref |
Explode an include path into an array If no path provided, uses current include_path. Works around issues that occur when the path includes stream schemas. param: string|null $path return: array |
autoload($class) X-Ref |
spl_autoload() suitable implementation for supporting class autoloading. Attach to spl_autoload() using the following: <code> spl_autoload_register(array('Zend_Loader', 'autoload')); </code> param: string $class return: string|false Class name on success; false on failure |
registerAutoload($class = 'Zend_Loader', $enabled = true) X-Ref |
Register {@link autoload()} with spl_autoload() param: string $class (optional) param: boolean $enabled (optional) return: void |
_securityCheck($filename) X-Ref |
Ensure that filename does not contain exploits param: string $filename return: void |
_includeFile($filespec, $once = false) X-Ref |
Attempt to include() the file. include() is not prefixed with the @ operator because if the file is loaded and contains a parse error, execution will halt silently and this is difficult to debug. Always set display_errors = Off on production servers! param: string $filespec param: boolean $once return: boolean |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |