Elgg  Version 1.11
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_create_service_provider ()
 Sets up autoloading and creates the service provider (DIC) More...
 
 _elgg_load_autoload_cache ()
 Load cached data into the autoload system. More...
 
 _elgg_save_autoload_cache ()
 Save the autoload system cache. 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_create_service_provider ( )

Sets up autoloading and creates the service provider (DIC)

Setup global class map and loader instances and add the core classes to the map. We can't load this from dataroot because we don't know it yet, and we'll need several classes before we can find out!

Exceptions
RuntimeExceptionprivate

Definition at line 32 of file autoloader.php.

_elgg_delete_autoload_cache ( )

Delete the autoload system cache.

private

Definition at line 71 of file autoloader.php.

_elgg_load_autoload_cache ( )

Load cached data into the autoload system.

Note this has to wait until Elgg's data path is known.

private

Definition at line 49 of file autoloader.php.

_elgg_save_autoload_cache ( )

Save the autoload system cache.

private

Definition at line 62 of file autoloader.php.

_elgg_services ( )
elgg_get_class_loader ( )

Get Elgg's class loader.

Returns

Definition at line 80 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 109 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 96 of file autoloader.php.

Variable Documentation

Definition at line 114 of file autoloader.php.