PHP Класс Pop\Feed\Writer

Автор: Nick Sagona, III ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$data array Feed data for JSON and PHP formats
$dateFormat string Feed date format
$feedType string Feed type
$headers array Feed headers
$items array Feed items

Открытые методы

Метод Описание
__construct ( array $headers, array $items, mixed $type = Writer::RSS, string $date = 'D, j M Y H:i:s O' ) : Writer Constructor
factory ( array $headers, array $items, mixed $type = Writer::RSS, string $date = 'D, j M Y H:i:s O' ) : Writer Static method to instantiate the feed writer object and return itself to facilitate chaining methods together.
render ( boolean $ret = false ) : mixed Method to render the feed and its items

Защищенные методы

Метод Описание
init ( ) : void Initialize the feed.

Описание методов

__construct() публичный Метод

Instantiate the feed object.
public __construct ( array $headers, array $items, mixed $type = Writer::RSS, string $date = 'D, j M Y H:i:s O' ) : Writer
$headers array
$items array
$type mixed
$date string
Результат Writer

factory() публичный статический Метод

Static method to instantiate the feed writer object and return itself to facilitate chaining methods together.
public static factory ( array $headers, array $items, mixed $type = Writer::RSS, string $date = 'D, j M Y H:i:s O' ) : Writer
$headers array
$items array
$type mixed
$date string
Результат Writer

init() защищенный Метод

Initialize the feed.
protected init ( ) : void
Результат void

render() публичный Метод

Method to render the feed and its items
public render ( boolean $ret = false ) : mixed
$ret boolean
Результат mixed

Описание свойств

$data защищенное свойство

Feed data for JSON and PHP formats
protected array $data
Результат array

$dateFormat защищенное свойство

Feed date format
protected string $dateFormat
Результат string

$feedType защищенное свойство

Feed type
protected string $feedType
Результат string

$headers защищенное свойство

Feed headers
protected array $headers
Результат array

$items защищенное свойство

Feed items
protected array $items
Результат array