PHP Класс FOF30\Factory\Scaffolding\Controller\Builder

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__construct ( Container $c ) Create the scaffolding builder instance
getContainer ( ) : Container Gets the container this builder belongs to
getSection ( ) : string
make ( string $requestedClass, string $viewName ) : boolean Make a new scaffolding document
setSection ( string $section )

Описание методов

__construct() публичный Метод

Create the scaffolding builder instance
public __construct ( Container $c )
$c FOF30\Container\Container

getContainer() публичный Метод

Gets the container this builder belongs to
public getContainer ( ) : Container
Результат FOF30\Container\Container

getSection() публичный Метод

public getSection ( ) : string
Результат string

make() публичный Метод

Make a new scaffolding document
public make ( string $requestedClass, string $viewName ) : 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
Результат boolean True on success, false otherwise

setSection() публичный Метод

public setSection ( string $section )
$section string

Описание свойств

$container защищенное свойство

The container we belong to
protected $container

$section защищенное свойство

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
Результат string