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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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