Property | Type | Description | |
---|---|---|---|
$container | The container we belong to | ||
$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 |
Method | Description | |
---|---|---|
__construct ( |
Create the scaffolding builder instance | |
getContainer ( ) : |
Gets the container this builder belongs to | |
getSection ( ) : string | ||
make ( string $requestedClass, string $viewName, string $viewType ) : boolean | Make a new scaffolding document | |
setSection ( string $section ) |
public __construct ( |
||
$c |
public getContainer ( ) : |
||
return |
public make ( string $requestedClass, string $viewName, string $viewType ) : boolean | ||
$requestedClass | string | The requested class, with full qualifier ie Myapp\Site\Controller\Foobar |
$viewName | string | The name of the view linked to this controller |
$viewType | string | The type of the view linked to this controller |
return | boolean | True on success, false otherwise |
protected string $section | ||
return | string |