PHP Class Phrozn\Site\View\Factory

Author: Victor Farazdagi
Inheritance: implements Phrozn\Has\InputFile
Exibir arquivo Open project: farazdagi/phrozn Class Usage Examples

Public Methods

Method Description
__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

Private Methods

Method Description
constructFile ( string $type ) : Phrozn\Site\View Create and return view of a given type

Method Details

__construct() public method

Initialize factory by providing input file path
public __construct ( string $path = null ) : void
$path string Path to page source file
return void

create() public method

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

getInputFile() public method

Get input file path
public getInputFile ( ) : string
return string

getInputRootDir() public method

Get input root directory
public getInputRootDir ( ) : string
return string

setInputFile() public method

Set input file path
public setInputFile ( string $path ) : Factory
$path string Path to file
return Factory

setInputRootDir() public method

Set input root dir
public setInputRootDir ( string $path ) : Factory
$path string Input root directory
return Factory