PHP Класс Elgg\Assets\ExternalFiles

С версии: 1.10.0
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( stdClass $config = null )
$config stdClass Predefined configuration in format used by global $CONFIG variable

bootstrap() защищенный Метод

Bootstraps the externals data structure in $_ELGG.
protected bootstrap ( string $type ) : null
$type string The type of external, js or css.
Результат null

getLoadedFiles() публичный Метод

Get external resource descriptors
public getLoadedFiles ( string $type, string $location ) : array
$type string Type of file: js or css
$location string Page location
Результат array

load() публичный Метод

Load an external resource for use on this page
public load ( string $type, string $name ) : void
$type string Type of file: js or css
$name string The identifier for the file
Результат void

register() публичный Метод

Core registration function for external files
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

unregister() публичный Метод

Unregister an external file
public unregister ( string $type, string $name ) : boolean
$type string Type of file: js or css
$name string The identifier of the file
Результат boolean