PHP Класс Phrozn\Site\View\Factory

Автор: Victor Farazdagi
Наследование: implements Phrozn\Has\InputFile
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( string $path = null ) : void Initialize factory by providing input file path
create ( ) Depending on internal configuration and concrete type, create view
getInputFile ( ) : string Get input file path
getInputRootDir ( ) : string Get input root directory
setInputFile ( string $path ) : Factory Set input file path
setInputRootDir ( string $path ) : Factory Set input root dir

Приватные методы

Метод Описание
constructFile ( string $type ) : Phrozn\Site\View Create and return view of a given type

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

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

Initialize factory by providing input file path
public __construct ( string $path = null ) : void
$path string Path to page source file
Результат void

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

return \Phrozn\Site\View\Factory
public create ( )

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

Get input file path
public getInputFile ( ) : string
Результат string

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

Get input root directory
public getInputRootDir ( ) : string
Результат string

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

Set input file path
public setInputFile ( string $path ) : Factory
$path string Path to file
Результат Factory

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

Set input root dir
public setInputRootDir ( string $path ) : Factory
$path string Input root directory
Результат Factory