PHP Class FOF30\Factory\Scaffolding\Controller\ControllerErector

Inheritance: implements FOF30\Factory\Scaffolding\Controller\ErectorInterface
ファイルを表示 Open project: akeeba/fof Class Usage Examples

Protected Properties

Property Type Description
$builder Builder The Builder which called us
$controller FOF30\Controller\DataController The Controller 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, DataController $controller, $viewName )
build ( )
getSection ( ) : string
setSection ( string $section )

Method Details

__construct() public method

public __construct ( Builder $parent, DataController $controller, $viewName )
$parent Builder
$controller FOF30\Controller\DataController

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_oe property

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

$controller protected_oe property

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

$section protected_oe 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_oe property

The name of our view
protected string $viewName
return string