PHP Class FOF30\Factory\Scaffolding\View\ViewErector

Inheritance: implements FOF30\Factory\Scaffolding\View\ErectorInterface
Show file Open project: akeeba/fof Class Usage Examples

Protected Properties

Property Type Description
$builder Builder The Builder which called us
$section string Section used to build the namespace prefix. We have to pass it since in CLI scaffolding we need to force the section we're in (ie Site or Admin). {@see \FOF30\Container\Container::getNamespacePrefix() } for valid values
$view FOF30\View\DataView\Html The Controller attached to the view we're building
$viewName string The name of our view
$viewType string The type of our view

Public Methods

Method Description
__construct ( Builder $parent, Html $view, $viewName, $viewType )
build ( )
getSection ( ) : string
setSection ( string $section )

Method Details

__construct() public method

public __construct ( Builder $parent, Html $view, $viewName, $viewType )
$parent Builder
$view FOF30\View\DataView\Html

build() public method

public build ( )

getSection() public method

public getSection ( ) : string
return string

setSection() public method

public setSection ( string $section )
$section string

Property Details

$builder protected property

The Builder which called us
protected Builder,FOF30\Factory\Scaffolding\View $builder
return Builder

$section protected property

Section used to build the namespace prefix. We have to pass it since in CLI scaffolding we need to force the section we're in (ie Site or Admin). {@see \FOF30\Container\Container::getNamespacePrefix() } for valid values
protected string $section
return string

$view protected property

The Controller attached to the view we're building
protected Html,FOF30\View\DataView $view
return FOF30\View\DataView\Html

$viewName protected property

The name of our view
protected string $viewName
return string

$viewType protected property

The type of our view
protected string $viewType
return string