PHP 클래스 FOF30\Factory\Scaffolding\View\Builder

파일 보기 프로젝트 열기: akeeba/fof 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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, string $viewType ) : 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, 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
리턴 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