PHP Class Xpressengine\UIObject\AbstractUIObject

Author: XE Developers ([email protected])
Inheritance: implements Illuminate\Contracts\Support\Renderable, implements Xpressengine\Plugin\ComponentInterface, use trait Xpressengine\Plugin\ComponentTrait
Mostra file Open project: xpressengine/xpressengine Class Usage Examples

Public Properties

Property Type Description
$sequence

Protected Properties

Property Type Description
$arguments UIObject 생성시 첫번째 인자로 받는 파라메터
$callback UIObject가 출력(render)될 때, callback이 지정돼 있을 경우, 이 callback을 한번 실행한 후 출력된다. 만약 UIObject의 출력에 변화를 주고 싶을 경우, callback을 사용하여 출력되는 값을 변경할 수 있다. 이 callback은 파라메터로 출력될 html(PhpQueryObject)을 전달 받는다. html을 변경하면 변경한 html이 출력된다.
$markup 출력될 html의 PhpQueryObject
$template UIObject가 기본적으로 가지고 있는 html

Public Methods

Method Description
__construct ( mixed $args = [], Closure $callback = null ) 생성자. 모든 UIObject는 동일한 방식으로 생성되어야 한다.
__toString ( ) : string UIObject는 string 타입으로 캐스팅될 수 있으며, 이 때에 render 메소드가 사용된다.
render ( ) : string UIObject가 출력될 때 호출되는 메소드이다.
seq ( ) : integer get sequence number

Method Details

__construct() final public method

생성자. 모든 UIObject는 동일한 방식으로 생성되어야 한다.
final public __construct ( mixed $args = [], Closure $callback = null )
$args mixed UIObject의 출력에 필요한 변수
$callback Closure UIObject가 출력될 때 실행될 callback

__toString() public method

UIObject는 string 타입으로 캐스팅될 수 있으며, 이 때에 render 메소드가 사용된다.
public __toString ( ) : string
return string

render() public method

UIObject가 출력될 때 호출되는 메소드이다.
public render ( ) : string
return string

seq() public static method

get sequence number
public static seq ( ) : integer
return integer

Property Details

$arguments protected_oe property

UIObject 생성시 첫번째 인자로 받는 파라메터
protected $arguments

$callback protected_oe property

UIObject가 출력(render)될 때, callback이 지정돼 있을 경우, 이 callback을 한번 실행한 후 출력된다. 만약 UIObject의 출력에 변화를 주고 싶을 경우, callback을 사용하여 출력되는 값을 변경할 수 있다. 이 callback은 파라메터로 출력될 html(PhpQueryObject)을 전달 받는다. html을 변경하면 변경한 html이 출력된다.
protected $callback

$markup protected_oe property

출력될 html의 PhpQueryObject
protected $markup

$sequence public_oe static_oe property

public static $sequence

$template protected_oe property

UIObject가 기본적으로 가지고 있는 html
protected $template