PHP 클래스 Apple_Exporter\Builders\Components

부터: 0.4.0
상속: extends Apple_Exporter\Builders\Builder
파일 보기 프로젝트 열기: alleyinteractive/apple-news 1 사용 예제들

보호된 메소드들

메소드 설명
build ( ) : array Builds an array with all the components of this WordPress content.

비공개 메소드들

메소드 설명
add_pullquote_if_needed ( &$components ) Add a pullquote component if needed.
add_thumbnail_if_needed ( &$components ) Add a thumbnail if needed.
anchor_components ( &$components ) Anchor components that are marked as can_be_anchor_target.
anchor_together ( Component $component, Component $target_component ) Given two components, anchor the first one to the second.
get_component_from_shortname ( string $shortname, string $html = null ) : Component Get a component from the shortname.
get_components_from_node ( DomNode $node ) : Component Get a component from a node.
group_body_components ( array $components ) : array Given an array of components in array format, group all the elements of role 'body'. Ignore body elements that have an ID, as they are used for anchoring.
meta_components ( ) : array Meta components are those which were not created from the HTML content.
split_into_components ( ) : array Split components from the source WordPress content.

메소드 상세

build() 보호된 메소드

Builds an array with all the components of this WordPress content.
protected build ( ) : array
리턴 array