PHP 클래스 Phrozn\Site\Base

저자: Victor Farazdagi
상속: implements Phrozn\Site
파일 보기 프로젝트 열기: farazdagi/phrozn

공개 메소드들

메소드 설명
__construct ( string $inputDir = null, string $outputDir = null, array $config = null ) : void Initialize site object
getInputDir ( ) : string Get input directory path
getOutputDir ( ) : string Get output directory path
getOutputter ( ) : Phrozn\Outputter Get outputter instance
getQueue ( ) : array Return list of queued views ready to be processed
getSiteConfig ( ) : array Get site configuration
setInputDir ( string $path ) : Phrozn\Site Set input directory path
setOutputDir ( string $path ) : Phrozn\Site Set output directory path
setOutputter ( Phrozn\Outputter $outputter ) : Phrozn\Site Set outputter
setSiteConfig ( array $config ) : Phrozn\Has\SiteConfig Set site configuration

보호된 메소드들

메소드 설명
addView ( $view ) : Phrozn\Site Adds view to the list of queued views
buildQueue ( ) : Phrozn\Site Create list of views to be created
getProjectDir ( ) : string Guess directory with Phrozn project using input directory

메소드 상세

__construct() 공개 메소드

Initialize site object
public __construct ( string $inputDir = null, string $outputDir = null, array $config = null ) : void
$inputDir string Input directory path
$outputDir string Output directory path
$config array Configuration options with which site generation should run
리턴 void

addView() 보호된 메소드

Adds view to the list of queued views
protected addView ( $view ) : Phrozn\Site
리턴 Phrozn\Site

buildQueue() 보호된 메소드

Create list of views to be created
protected buildQueue ( ) : Phrozn\Site
리턴 Phrozn\Site

getInputDir() 공개 메소드

Get input directory path
public getInputDir ( ) : string
리턴 string

getOutputDir() 공개 메소드

Get output directory path
public getOutputDir ( ) : string
리턴 string

getOutputter() 공개 메소드

Get outputter instance
public getOutputter ( ) : Phrozn\Outputter
리턴 Phrozn\Outputter

getProjectDir() 보호된 메소드

Guess directory with Phrozn project using input directory
protected getProjectDir ( ) : string
리턴 string

getQueue() 공개 메소드

Return list of queued views ready to be processed
public getQueue ( ) : array
리턴 array

getSiteConfig() 공개 메소드

Get site configuration
public getSiteConfig ( ) : array
리턴 array

setInputDir() 공개 메소드

Set input directory path
public setInputDir ( string $path ) : Phrozn\Site
$path string Directory path
리턴 Phrozn\Site

setOutputDir() 공개 메소드

Set output directory path
public setOutputDir ( string $path ) : Phrozn\Site
$path string Directory path
리턴 Phrozn\Site

setOutputter() 공개 메소드

Set outputter
public setOutputter ( Phrozn\Outputter $outputter ) : Phrozn\Site
$outputter Phrozn\Outputter Outputter instance
리턴 Phrozn\Site

setSiteConfig() 공개 메소드

Set site configuration
public setSiteConfig ( array $config ) : Phrozn\Has\SiteConfig
$config array Array of options
리턴 Phrozn\Has\SiteConfig