PHP 클래스 Phrocco\PhroccoGroup

Whereas the base Phrocco class operates on a single file to produce a single output, This class looks after recursively iterating over a directory and creating an output for each file found.
저자: Ross Riley
파일 보기 프로젝트 열기: rossriley/phrocco 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$defaults
$extensions
$group
$language ### Default options, These are normally provided by the command-line tool but can be overridden if required.
$options

공개 메소드들

메소드 설명
__construct ( array $options ) ###Constructor method, Prepares class using command line options provided.
process ( ) ## Iterate and Process All the magic happens here, whils it looks complicated this is essentially a directory iterator that creates an array of filenames, with a corresponding Phrocco object that can look after rendering itself.
write ( ) ### Final File renders Iterates over all found files and calls on the Phrocco class to render each file.

메소드 상세

__construct() 공개 메소드

###Constructor method, Prepares class using command line options provided.
public __construct ( array $options )
$options array receives the command line options to decide where to choose files and output docs.

process() 공개 메소드

## Iterate and Process All the magic happens here, whils it looks complicated this is essentially a directory iterator that creates an array of filenames, with a corresponding Phrocco object that can look after rendering itself.
public process ( )

write() 공개 메소드

### Final File renders Iterates over all found files and calls on the Phrocco class to render each file.
public write ( )

프로퍼티 상세

$defaults 공개적으로 프로퍼티

public $defaults

$extensions 공개적으로 프로퍼티

public $extensions

$group 공개적으로 프로퍼티

public $group

$language 공개적으로 프로퍼티

### Default options, These are normally provided by the command-line tool but can be overridden if required.
public $language

$options 공개적으로 프로퍼티

public $options