PHP Class Apple_Exporter\Builders\Component_Layouts

Since: 0.4.0
Inheritance: extends Apple_Exporter\Builders\Builder
Afficher le fichier Open project: alleyinteractive/apple-news Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
build ( ) : array Returns all layouts registered so far.

Private Methods

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

Method Details

__construct() public méthode

Constructor.
public __construct ( $content, $settings )

build() protected méthode

Returns all layouts registered so far.
Since: 0.4.0
protected build ( ) : array
Résultat array

register_layout() public méthode

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 méthode

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