PHP Class Xpressengine\Presenter\Html\Tags\Html

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

Protected Properties

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

Public Methods

Method 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

Protected Methods

Method Description
resolveKey ( string $alias ) : string key resolver

Method Details

__construct() public method

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

content() public method

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

init() public static method

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

load() public method

load
public load ( )

output() public static method

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

render() public method

render
public render ( ) : string
return string

resolveKey() protected method

key resolver
protected resolveKey ( string $alias ) : string
$alias string alias
return string

unload() public method

unload
public unload ( ) : void
return void

Property Details

$alias protected property

protected int|null $alias
return integer | null

$aliasSeq protected static property

protected static int $aliasSeq
return integer

$content protected property

protected string|callable $content
return string | callable

$html protected property

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

$htmlList protected static property

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

$loaded protected property

protected bool $loaded
return boolean

$unloaded protected static property

alias list
protected static $unloaded