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
Afficher le fichier Open project: habari/system

Méthodes publiques

Свойство Type Description
$files

Méthodes publiques

Méthode 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 méthode

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
Résultat boolean True if this function successfully autoloads the class in question

queue_dirs() public static méthode

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
Résultat array The full list of files that could be used for autoloading

Property Details

$files static_oe public_oe property

static public $files