PHP 클래스 Pop\Feed\Writer

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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