Definition at line 14 of file ExternalFiles.php.
Elgg\Assets\ExternalFiles::__construct |
( |
\stdClass |
$config = null | ) |
|
Constructor.
- Parameters
-
\stdClass | $config | Predefined configuration in format used by global $CONFIG variable |
Definition at line 27 of file ExternalFiles.php.
Elgg\Assets\ExternalFiles::bootstrap |
( |
|
$type | ) |
|
|
protected |
Bootstraps the externals data structure in $_ELGG.
- Parameters
-
string | $type | The type of external, js or css. |
- Returns
- null
Definition at line 186 of file ExternalFiles.php.
Elgg\Assets\ExternalFiles::getLoadedFiles |
( |
|
$type, |
|
|
|
$location |
|
) |
| |
Get external resource descriptors.
- Parameters
-
string | $type | Type of file: js or css |
string | $location | Page location |
- Returns
- array
Definition at line 157 of file ExternalFiles.php.
Elgg\Assets\ExternalFiles::load |
( |
|
$type, |
|
|
|
$name |
|
) |
| |
Load an external resource for use on this page.
- Parameters
-
string | $type | Type of file: js or css |
string | $name | The identifier for the file |
- Returns
- void
Definition at line 126 of file ExternalFiles.php.
Elgg\Assets\ExternalFiles::register |
( |
|
$type, |
|
|
|
$name, |
|
|
|
$url, |
|
|
|
$location, |
|
|
|
$priority = 500 |
|
) |
| |
Core registration function for external files.
- Parameters
-
string | $type | Type of external resource (js or css) |
string | $name | Identifier used as key |
string | $url | URL |
string | $location | Location in the page to include the file |
int | $priority | Loading priority of the file |
- Returns
- bool
Definition at line 45 of file ExternalFiles.php.
Elgg\Assets\ExternalFiles::unregister |
( |
|
$type, |
|
|
|
$name |
|
) |
| |
Unregister an external file.
- Parameters
-
string | $type | Type of file: js or css |
string | $name | The identifier of the file |
- Returns
- bool
Definition at line 103 of file ExternalFiles.php.
The documentation for this class was generated from the following file: