PHP 클래스 Apple_Exporter\Component_Factory

부터: 0.2.0
파일 보기 프로젝트 열기: alleyinteractive/apple-news 1 사용 예제들

공개 메소드들

메소드 설명
get_component ( string $shortname, string $html ) : Component Get a component.
get_components_from_node ( DomNode $node ) : array Given a node, returns an array of all the components inside that node. If the node is a component itself, returns an array of only one element.
initialize ( Workspace $workspace, Settings $settings, Component_Text_Styles $styles, Component_Layouts $layouts ) Initialize the component factory.

비공개 메소드들

메소드 설명
register_component ( string $shortname, string $classname ) Register a component.

메소드 상세

get_component() 공개 정적인 메소드

Get a component.
public static get_component ( string $shortname, string $html ) : Component
$shortname string
$html string
리턴 Component

get_components_from_node() 공개 정적인 메소드

Given a node, returns an array of all the components inside that node. If the node is a component itself, returns an array of only one element.
public static get_components_from_node ( DomNode $node ) : array
$node DomNode
리턴 array

initialize() 공개 정적인 메소드

Initialize the component factory.
public static initialize ( Workspace $workspace, Settings $settings, Component_Text_Styles $styles, Component_Layouts $layouts )
$workspace Workspace
$settings Settings
$styles Component_Text_Styles
$layouts Component_Layouts