PHP Class FOF30\Factory\Scaffolding\Model\ModelErector

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

Protected Properties

Property Type Description
$builder FOF30\Factory\Scaffolding\Controller\Builder The Builder which called us
$model FOF30\Controller\DataController The Model attached to the view we're building
$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
$viewName string The name of our view

Public Methods

Method Description
__construct ( Builder $parent, DataModel $model, $viewName )
build ( )
getSection ( ) : string
setSection ( string $section )

Method Details

__construct() public method

public __construct ( Builder $parent, DataModel $model, $viewName )
$parent Builder
$model FOF30\Model\DataModel

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\Controller $builder
return FOF30\Factory\Scaffolding\Controller\Builder

$model protected property

The Model attached to the view we're building
protected DataController,FOF30\Controller $model
return FOF30\Controller\DataController

$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

$viewName protected property

The name of our view
protected string $viewName
return string