PHP Class Phrozn\Site\View\OutputPath\Base

Author: Victor Farazdagi
Inheritance: implements Phrozn\Site\View\OutputPath
ファイルを表示 Open project: farazdagi/phrozn

Public Methods

Method Description
__construct ( Phrozn\Site\View $view ) : void Initialize path builder
getView ( ) : Phrozn\Site\View Get view
setView ( Phrozn\Site\View $view ) : Phrozn\Site\View\OutputPath Set view

Protected Methods

Method Description
getInputFileExtension ( $includeDot = true ) : string Get the file extension for the input file
getInputFileWithoutExt ( ) : string Extract input file from view (remove extension)
getRelativeFile ( string $base = '', boolean $prepend = true ) : string Detect relative file path with respect to $base folder

Method Details

__construct() public method

Initialize path builder
public __construct ( Phrozn\Site\View $view ) : void
$view Phrozn\Site\View
return void

getInputFileExtension() protected method

Get the file extension for the input file
protected getInputFileExtension ( $includeDot = true ) : string
return string

getInputFileWithoutExt() protected method

Extract input file from view (remove extension)
protected getInputFileWithoutExt ( ) : string
return string

getRelativeFile() protected method

Detect relative file path with respect to $base folder
protected getRelativeFile ( string $base = '', boolean $prepend = true ) : string
$base string Base folder name from which to start
$prepend boolean Whether to prepend base folder name to result
return string

getView() public method

Get view
public getView ( ) : Phrozn\Site\View
return Phrozn\Site\View

setView() public method

Set view
public setView ( Phrozn\Site\View $view ) : Phrozn\Site\View\OutputPath
$view Phrozn\Site\View View object
return Phrozn\Site\View\OutputPath