PHP Class Apple_Exporter\Builders\Component_Layouts

Since: 0.4.0
Inheritance: extends Apple_Exporter\Builders\Builder
Datei anzeigen Open project: alleyinteractive/apple-news Class Usage Examples

Public Methods

Method Description
__construct ( $content, $settings ) Constructor.
register_layout ( string $name, string $spec ) Register a layout into the exporter.
set_anchor_layout_for ( Component $component ) Sets the required layout for a component to anchor another component or be anchored.

Protected Methods

Method Description
build ( ) : array Returns all layouts registered so far.

Private Methods

Method Description
layout_exists ( string $name ) : boolean Check if a layout already exists.

Method Details

__construct() public method

Constructor.
public __construct ( $content, $settings )

build() protected method

Returns all layouts registered so far.
Since: 0.4.0
protected build ( ) : array
return array

register_layout() public method

Register a layout into the exporter.
Since: 0.4.0
public register_layout ( string $name, string $spec )
$name string
$spec string

set_anchor_layout_for() public method

Sets the required layout for a component to anchor another component or be anchored.
public set_anchor_layout_for ( Component $component )
$component Apple_Exporter\Components\Component