Liste de tous les membres
Fonctions membres privées statiques |
static | _autoload ($class) |
static | _load ($class, $lookup) |
Documentation des fonctions membres
static JLoader::_autoload |
( |
|
$class | ) |
|
|
staticprivate |
Autoload a class based on name.
- Paramètres:
-
string | $class | The class to be loaded. |
- Renvoie:
- void
- Depuis:
- 11.3
Références $class.
static JLoader::_load |
( |
|
$class, |
|
|
|
$lookup |
|
) |
| |
|
staticprivate |
Load a class based on name and lookup array.
- Paramètres:
-
string | $class | The class to be loaded (wihtout prefix). |
array | $lookup | The array of base paths to use for finding the class file. |
- Renvoie:
- void
- Depuis:
- 12.1
Références $class, $parts, et $path.
static JLoader::discover |
( |
|
$classPrefix, |
|
|
|
$parentPath, |
|
|
|
$force = true , |
|
|
|
$recurse = false |
|
) |
| |
|
static |
Method to discover classes of a given type in a given path.
- Paramètres:
-
string | $classPrefix | The class name prefix to use for discovery. |
string | $parentPath | Full path to the parent folder for the classes to discover. |
boolean | $force | True to overwrite the autoload path value for the class if it already exists. |
boolean | $recurse | Recurse through all child directories as well as the parent path. |
- Renvoie:
- void
- Depuis:
- 11.1
Références $class, et $file.
static JLoader::getClassList |
( |
| ) |
|
|
static |
Method to get the list of registered classes and their respective file paths for the autoloader.
- Renvoie:
- array The array of class => path values for the autoloader.
- Depuis:
- 11.1
static JLoader::import |
( |
|
$key, |
|
|
|
$base = null |
|
) |
| |
|
static |
static JLoader::load |
( |
|
$class | ) |
|
|
static |
Load the file for a class.
- Paramètres:
-
string | $class | The class to be loaded. |
- Renvoie:
- boolean True on success
- Depuis:
- 11.1
Références $class.
Référencé par JFTP\__construct().
static JLoader::register |
( |
|
$class, |
|
|
|
$path, |
|
|
|
$force = true |
|
) |
| |
|
static |
static JLoader::registerPrefix |
( |
|
$prefix, |
|
|
|
$path, |
|
|
|
$reset = false |
|
) |
| |
|
static |
Register a class prefix with lookup path. This will allow developers to register library packages with different class prefixes to the system autoloader. More than one lookup path may be registered for the same class prefix, but if this method is called with the reset flag set to true then any registered lookups for the given prefix will be overwritten with the current lookup path.
- Paramètres:
-
string | $prefix | The class prefix to register. |
string | $path | Absolute file path to the library root where classes with the given prefix can be found. |
boolean | $reset | True to reset the prefix with only the given lookup path. |
- Renvoie:
- void
- Depuis:
- 12.1
Références $path.
static JLoader::setup |
( |
| ) |
|
|
static |
Method to setup the autoloaders for the Joomla Platform. Since the SPL autoloaders are called in a queue we will add our explicit, class-registration based loader first, then fall back on the autoloader based on conventions. This will allow people to register a class in a specific location and override platform libraries as was previously possible.
- Renvoie:
- void
- Depuis:
- 11.3
Documentation des données membres
JLoader::$classes = array() |
|
staticprotected |
JLoader::$imported = array() |
|
staticprotected |
JLoader::$prefixes = array() |
|
staticprotected |
La documentation de cette classe a été générée à partir du fichier suivant :