autoload()
getErrors()
getLoadedClasses()
initialize()
isAutoloadable()
_getContenidoClassFile()
_loadFile()
_validateClassAndFile()
$_conRootPath
$_errors
$_includeFiles
$_initialized
$_loadedClasses
ERROR_CLASS_EXISTS
ERROR_FILE_NOT_FOUND
autoload(string $className) : void
Tries to include the file of passed classname.
string
The classname
\Exception |
If autoloader wasn't initialized before |
---|
getErrors() : array
array
getLoadedClasses() : array
array
initialize(array $cfg) : void
Registers itself as a __autoload implementation, includes the classmap file, and if exists, the user defined class map file, containing the includes.
array
The Contenido cfg array
isAutoloadable(string $file) : bool
string
Filename or Filename with a part of the path, e. g. - class.foobar.php - classes/class.foobar.php - contenido/classes/class.foobar.php
bool
_getContenidoClassFile(string $className) : \(string | \null)
string
\(string
\null)
Path and filename or null_loadFile(string $filePathName, bool $beQuiet) : void
string
bool
Flag to prevent thrown warnings/errors by using the error control operator @
_validateClassAndFile(string $className, string $filePathName) : \(string | \null)
string
string
\(string
\null)
The file if validation was successfull, otherwhise null$_conRootPath : string
$_errors : array
$_errors[pos] = array('class' => classname, 'file' => file, 'error' => errorType);
$_includeFiles : array
$_initialized : bool
$_loadedClasses : array
$_loadedClasses['classname'] = '/path/to/the/class.php';
ERROR_CLASS_EXISTS
ERROR_FILE_NOT_FOUND