Elgg  Version 2.3
Namespaces | Functions | Variables
autoloader.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Functions

 _elgg_services (\Elgg\Di\ServiceProvider $services=null)
 Get the global service provider. More...
 
 _elgg_delete_autoload_cache ()
 Delete the autoload system cache. More...
 
 elgg_get_class_loader ()
 Get Elgg's class loader. More...
 
 elgg_register_classes ($dir)
 Register a directory tree for autoloading classes/interfaces/traits. More...
 
 elgg_register_class ($class, $location)
 Register a classname to a file. More...
 

Variables

return function (\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks)
 

Function Documentation

_elgg_delete_autoload_cache ( )

Delete the autoload system cache.

private

Definition at line 30 of file autoloader.php.

_elgg_services ( \Elgg\Di\ServiceProvider  $services = null)

Get the global service provider.

Parameters
\Elgg\Di\ServiceProvider$servicesElgg service provider. This must be set by the application.
Returns
private
Examples:
/root/Elgg/engine/classes/ElggBatch.php, /root/Elgg/engine/lib/output.php, and /root/Elgg/engine/lib/views.php.

Definition at line 17 of file autoloader.php.

elgg_get_class_loader ( )

Get Elgg's class loader.

Returns

Definition at line 39 of file autoloader.php.

elgg_register_class (   $class,
  $location 
)

Register a classname to a file.

Parameters
string$classThe name of the class
string$locationThe location of the file
Returns
bool true
Since
1.8.0

Definition at line 68 of file autoloader.php.

elgg_register_classes (   $dir)

Register a directory tree for autoloading classes/interfaces/traits.

For BC with 1.8, all .php files in the top-level directory are scanned and added to the class map (only on the first request), then lower-level directories are registered for standard PSR-0 autoloading.

Parameters
string$dirThe dir to look in
Returns
void
Since
1.8.0

Definition at line 55 of file autoloader.php.

Variable Documentation

Definition at line 73 of file autoloader.php.