PHP Class Habari\Autoload

This method is called automatically in case you are trying to use a class which hasn't been defined yet. We look for the undefined class in the following folders: - /system/classes/*.php - /system/handlers/*.php - /user/classes/*.php - /user/handlers/*.php - /user/sites/x.y.z/classes/*.php - /user/sites/x.y.z/handlers/*.php
Mostrar archivo Open project: habari/system

Public Properties

Property Type Description
$files

Public Methods

Method Description
habari_autoload ( string $class_name ) : boolean SPL Autoload function, includes a file to meet requirement of loading a class by name
queue_dirs ( Array | string $dirs ) : array Queue directories for class autoloading

Method Details

habari_autoload() public static method

SPL Autoload function, includes a file to meet requirement of loading a class by name
public static habari_autoload ( string $class_name ) : boolean
$class_name string The name of a class, including (if present) a namespace
return boolean True if this function successfully autoloads the class in question

queue_dirs() public static method

Queue directories for class autoloading
public static queue_dirs ( Array | string $dirs ) : array
$dirs Array | string An array of directories or a single directory to autoload classes from
return array The full list of files that could be used for autoloading

Property Details

$files static_oe public_oe property

static public $files