PHP Class Phrozn\Site\Base

Author: Victor Farazdagi
Inheritance: implements Phrozn\Site
Afficher le fichier Open project: farazdagi/phrozn

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
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

Method Details

__construct() public méthode

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
Résultat void

addView() protected méthode

Adds view to the list of queued views
protected addView ( $view ) : Phrozn\Site
Résultat Phrozn\Site

buildQueue() protected méthode

Create list of views to be created
protected buildQueue ( ) : Phrozn\Site
Résultat Phrozn\Site

getInputDir() public méthode

Get input directory path
public getInputDir ( ) : string
Résultat string

getOutputDir() public méthode

Get output directory path
public getOutputDir ( ) : string
Résultat string

getOutputter() public méthode

Get outputter instance
public getOutputter ( ) : Phrozn\Outputter
Résultat Phrozn\Outputter

getProjectDir() protected méthode

Guess directory with Phrozn project using input directory
protected getProjectDir ( ) : string
Résultat string

getQueue() public méthode

Return list of queued views ready to be processed
public getQueue ( ) : array
Résultat array

getSiteConfig() public méthode

Get site configuration
public getSiteConfig ( ) : array
Résultat array

setInputDir() public méthode

Set input directory path
public setInputDir ( string $path ) : Phrozn\Site
$path string Directory path
Résultat Phrozn\Site

setOutputDir() public méthode

Set output directory path
public setOutputDir ( string $path ) : Phrozn\Site
$path string Directory path
Résultat Phrozn\Site

setOutputter() public méthode

Set outputter
public setOutputter ( Phrozn\Outputter $outputter ) : Phrozn\Site
$outputter Phrozn\Outputter Outputter instance
Résultat Phrozn\Site

setSiteConfig() public méthode

Set site configuration
public setSiteConfig ( array $config ) : Phrozn\Has\SiteConfig
$config array Array of options
Résultat Phrozn\Has\SiteConfig