Метод | Описание | |
---|---|---|
__construct ( stdClass $config = null ) | Constructor | |
getLoadedFiles ( string $type, string $location ) : array | Get external resource descriptors | |
load ( string $type, string $name ) : void | Load an external resource for use on this page | |
register ( string $type, string $name, string $url, string $location, integer $priority = 500 ) : boolean | Core registration function for external files | |
unregister ( string $type, string $name ) : boolean | Unregister an external file |
Метод | Описание | |
---|---|---|
bootstrap ( string $type ) : null | Bootstraps the externals data structure in $_ELGG. |
public __construct ( stdClass $config = null ) | ||
$config | stdClass | Predefined configuration in format used by global $CONFIG variable |
public register ( string $type, string $name, string $url, string $location, integer $priority = 500 ) : boolean | ||
$type | string | Type of external resource (js or css) |
$name | string | Identifier used as key |
$url | string | URL |
$location | string | Location in the page to include the file |
$priority | integer | Loading priority of the file |
Результат | boolean |