PHP Class Apple_Exporter\Components\Embed_Web_Video

Since: 0.2.0
Inheritance: extends Component
Show file Open project: alleyinteractive/apple-news Class Usage Examples

Public Methods

Method Description
is_embed_web_video ( DomNode $node, string $pattern ) : boolean Test if this node is a match based on the node type and URL format.
node_matches ( DomNode $node ) : mixed Look for node matches for this component.

Protected Methods

Method Description
build ( string $text ) Build the component.

Method Details

build() protected method

Build the component.
protected build ( string $text )
$text string

is_embed_web_video() public static method

Test if this node is a match based on the node type and URL format.
public static is_embed_web_video ( DomNode $node, string $pattern ) : boolean
$node DomNode
$pattern string
return boolean

node_matches() public static method

Look for node matches for this component.
public static node_matches ( DomNode $node ) : mixed
$node DomNode
return mixed