PHP Class Xpressengine\Presenter\Html\Tags\Html

Author: XE Developers ([email protected])
Inheritance: use trait LocatableTrait, use trait EmptyStringTrait, use trait SortTrait
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Свойство Type Description
$alias integer | null
$aliasSeq integer
$content string | callable
$html 해당 인스턴스에 포함된 파일들의 파일명 목록
$htmlList Html[] 3차원 배열의 형태(location x position x filename)
$loaded boolean
$unloaded alias list

Méthodes publiques

Méthode Description
__construct ( string | array | null $alias = null ) 생성자. 태그 별칭을 전달받는다.
content ( string $content ) content
init ( array $htmlList = [], Sorter $sorter = null ) : void init 전역 메소드이며, javascript 파일의 목록을 관리하기 위해 필요한 초기 작업으로 sorter와 file list를 설정한다.
load ( ) load
output ( string $location ) : string 주어진 위치에 해당하는 로드된 JS파일 목록을 출력한다.
render ( ) : string render
unload ( ) : void unload

Méthodes protégées

Méthode Description
resolveKey ( string $alias ) : string key resolver

Method Details

__construct() public méthode

생성자. 태그 별칭을 전달받는다.
public __construct ( string | array | null $alias = null )
$alias string | array | null 파일경로

content() public méthode

content
public content ( string $content )
$content string content

init() public static méthode

init 전역 메소드이며, javascript 파일의 목록을 관리하기 위해 필요한 초기 작업으로 sorter와 file list를 설정한다.
public static init ( array $htmlList = [], Sorter $sorter = null ) : void
$htmlList array js file의 목록
$sorter Xpressengine\Support\Sorter 우선순위 정렬을 위한 sorter
Résultat void

load() public méthode

load
public load ( )

output() public static méthode

주어진 위치에 해당하는 로드된 JS파일 목록을 출력한다.
public static output ( string $location ) : string
$location string 출력할 파일의 위치 (head.append|head.prepend|body.append|body.prepend)
Résultat string

render() public méthode

render
public render ( ) : string
Résultat string

resolveKey() protected méthode

key resolver
protected resolveKey ( string $alias ) : string
$alias string alias
Résultat string

unload() public méthode

unload
public unload ( ) : void
Résultat void

Property Details

$alias protected_oe property

protected int|null $alias
Résultat integer | null

$aliasSeq protected_oe static_oe property

protected static int $aliasSeq
Résultat integer

$content protected_oe property

protected string|callable $content
Résultat string | callable

$html protected_oe property

해당 인스턴스에 포함된 파일들의 파일명 목록
protected $html

$htmlList protected_oe static_oe property

3차원 배열의 형태(location x position x filename)
protected static Html[],Xpressengine\Presenter\Html\Tags $htmlList
Résultat Html[]

$loaded protected_oe property

protected bool $loaded
Résultat boolean

$unloaded protected_oe static_oe property

alias list
protected static $unloaded