PHP 클래스 Xpressengine\Presenter\Html\Tags\Html

저자: XE Developers ([email protected])
상속: use trait LocatableTrait, use trait EmptyStringTrait, use trait SortTrait
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
resolveKey ( string $alias ) : string key resolver

메소드 상세

__construct() 공개 메소드

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

content() 공개 메소드

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

init() 공개 정적인 메소드

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

load() 공개 메소드

load
public load ( )

output() 공개 정적인 메소드

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

render() 공개 메소드

render
public render ( ) : string
리턴 string

resolveKey() 보호된 메소드

key resolver
protected resolveKey ( string $alias ) : string
$alias string alias
리턴 string

unload() 공개 메소드

unload
public unload ( ) : void
리턴 void

프로퍼티 상세

$alias 보호되어 있는 프로퍼티

protected int|null $alias
리턴 integer | null

$aliasSeq 보호되어 있는 정적으로 프로퍼티

protected static int $aliasSeq
리턴 integer

$content 보호되어 있는 프로퍼티

protected string|callable $content
리턴 string | callable

$html 보호되어 있는 프로퍼티

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

$htmlList 보호되어 있는 정적으로 프로퍼티

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

$loaded 보호되어 있는 프로퍼티

protected bool $loaded
리턴 boolean

$unloaded 보호되어 있는 정적으로 프로퍼티

alias list
protected static $unloaded