PHP 클래스 MagpieFromSimplePie, feedwordpress

부터: 2010.0203
파일 보기 프로젝트 열기: radgeek/feedwordpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_XMLNS_FAMILIAR
$channel
$feed_type
$feed_version
$image
$inImage * MagpieFromSimplePie::handleAttributes()
$inTextInput
$items
$originals
$pie
$textinput

공개 메소드들

메소드 설명
MagpieFromSimplePie ( $pie, $item = true ) * MagpieFromSimplePie constructor
__construct ( SimplePie $pie, mixed $item = true ) MagpieFromSimplePie constructor
element_id ( string $el, integer $counter ) : string MagpieFromSimplePie::element_id Magic ID function for multiple elemenets.
feed_version ( ) : float MagpieFromSimplePie::feed_version
get_attrib ( array $namespaces, string $attr, array $element, mixed $default = NULL ) MagpieFromSimplePie::get_attrib
get_item ( ) : array MagpieFromSimplePie::get_item: returns a single MagpieRSS format array equivalent to a SimplePie_Item object from which this object was constructed.
get_items ( ) : array MagpieFromSimplePie::get_items: returns an array of MagpieRSS format arrays equivalent to the SimplePie_Item objects in the SimplePie object from which this object was constructed.
handleAttributes ( array $data, array $path ) : array MagpieFromSimplePie::handleAttributes
handleChildren ( array $data, array $path = [], $method = 'processItemData' ) : array MagpieFromSimplePie::handleChildren
increment_element ( &$data, string $childTag, string $ns, array $path ) MagpieFromSimplePie::increment_element
is_atom ( ) : boolean MagpieFromSimplePie::is_atom
is_namespaced ( string $ns, $attribute = false ) : boolean MagpieFromSimplePie::is_namespaced
is_rdf ( ) : boolean MagpieFromSimplePie::is_rdf
is_rss ( ) : boolean MagpieFromSimplePie::is_rss
normalize ( ) MagpieFromSimplePie::normalize
normalize_atom_person ( &$source, string $person, &$dest, string $to, integer $i ) MagpieFromSimplePie::normalize_atom_person
normalize_author_inheritance ( &$item, SimplePie_Item $original ) MagpieFromSimplePie::normalize_author_inheritance
normalize_category ( &$source, string $from, &$dest, string $to, integer $i ) MagpieFromSimplePie::normalize_category: Normalize Atom 1.0 and RSS 2.0 categories to Dublin Core.
normalize_dc_subject ( &$source, string $from, &$dest, string $to, integer $i ) MagpieFromSimplePie::normalize_dc_subject: Normalize Dublin Core "subject" elements to Atom 1.0 and RSS 2.0 categories.
normalize_element ( &$source, string $from, &$dest, string $to, mixed $via = NULL ) MagpieFromSimplePie::normalize_element Simplify the logic for normalize(). Makes sure that count of elements and each of multiple elements is normalized properly. If you need to mess with things like attributes or change formats or the like, pass it a callback to handle each element.
normalize_enclosure ( &$source, string $from, &$dest, string $to, integer $i ) MagpieFromSimplePie::normalize_enclosure
processChannelData ( array $data, array $path = [] ) : array MagpieFromSimplePie::processChannelData
processFeedData ( array $data ) : array MagpieFromSimplePie::processFeedData
processItemData ( array $data, array $path = [] ) : array MagpieFromSimplePie::processItemData

메소드 상세

MagpieFromSimplePie() 공개 메소드

* MagpieFromSimplePie constructor
public MagpieFromSimplePie ( $pie, $item = true )

__construct() 공개 메소드

MagpieFromSimplePie constructor
public __construct ( SimplePie $pie, mixed $item = true )
$pie SimplePie The feed to convert to MagpieRSS format.
$item mixed

element_id() 공개 메소드

Can be called as static MagpieRSS::element_id()
public element_id ( string $el, integer $counter ) : string
$el string
$counter integer
리턴 string

feed_version() 공개 메소드

MagpieFromSimplePie::feed_version
public feed_version ( ) : float
리턴 float

get_attrib() 공개 메소드

MagpieFromSimplePie::get_attrib
public get_attrib ( array $namespaces, string $attr, array $element, mixed $default = NULL )
$namespaces array
$attr string
$element array
$default mixed

get_item() 공개 메소드

MagpieFromSimplePie::get_item: returns a single MagpieRSS format array equivalent to a SimplePie_Item object from which this object was constructed.
public get_item ( ) : array
리턴 array A MagpieRSS-format array representing an item on this feed

get_items() 공개 메소드

MagpieFromSimplePie::get_items: returns an array of MagpieRSS format arrays equivalent to the SimplePie_Item objects in the SimplePie object from which this object was constructed.
public get_items ( ) : array
리턴 array An array of MagpieRSS-format arrays representing the items on this feed

handleAttributes() 공개 메소드

MagpieFromSimplePie::handleAttributes
public handleAttributes ( array $data, array $path ) : array
$data array
$path array
리턴 array

handleChildren() 공개 메소드

MagpieFromSimplePie::handleChildren
public handleChildren ( array $data, array $path = [], $method = 'processItemData' ) : array
$data array
$path array
리턴 array

increment_element() 공개 메소드

MagpieFromSimplePie::increment_element
public increment_element ( &$data, string $childTag, string $ns, array $path )
$childTag string
$ns string
$path array

is_atom() 공개 메소드

MagpieFromSimplePie::is_atom
public is_atom ( ) : boolean
리턴 boolean

is_namespaced() 공개 메소드

MagpieFromSimplePie::is_namespaced
public is_namespaced ( string $ns, $attribute = false ) : boolean
$ns string
리턴 boolean

is_rdf() 공개 메소드

MagpieFromSimplePie::is_rdf
public is_rdf ( ) : boolean
리턴 boolean

is_rss() 공개 메소드

MagpieFromSimplePie::is_rss
public is_rss ( ) : boolean
리턴 boolean

normalize() 공개 메소드

MagpieFromSimplePie::normalize
public normalize ( )

normalize_atom_person() 공개 메소드

MagpieFromSimplePie::normalize_atom_person
public normalize_atom_person ( &$source, string $person, &$dest, string $to, integer $i )
$person string
$to string
$i integer

normalize_author_inheritance() 공개 메소드

MagpieFromSimplePie::normalize_author_inheritance
public normalize_author_inheritance ( &$item, SimplePie_Item $original )
$original SimplePie_Item

normalize_category() 공개 메소드

..
public normalize_category ( &$source, string $from, &$dest, string $to, integer $i )
$from string
$to string
$i integer

normalize_dc_subject() 공개 메소드

MagpieFromSimplePie::normalize_dc_subject: Normalize Dublin Core "subject" elements to Atom 1.0 and RSS 2.0 categories.
public normalize_dc_subject ( &$source, string $from, &$dest, string $to, integer $i )
$from string
$to string
$i integer

normalize_element() 공개 메소드

MagpieFromSimplePie::normalize_element Simplify the logic for normalize(). Makes sure that count of elements and each of multiple elements is normalized properly. If you need to mess with things like attributes or change formats or the like, pass it a callback to handle each element.
public normalize_element ( &$source, string $from, &$dest, string $to, mixed $via = NULL )
$from string
$to string
$via mixed

normalize_enclosure() 공개 메소드

MagpieFromSimplePie::normalize_enclosure
public normalize_enclosure ( &$source, string $from, &$dest, string $to, integer $i )
$from string
$to string
$i integer

processChannelData() 공개 메소드

MagpieFromSimplePie::processChannelData
public processChannelData ( array $data, array $path = [] ) : array
$data array
$path array
리턴 array

processFeedData() 공개 메소드

MagpieFromSimplePie::processFeedData
public processFeedData ( array $data ) : array
$data array
리턴 array

processItemData() 공개 메소드

MagpieFromSimplePie::processItemData
public processItemData ( array $data, array $path = [] ) : array
$data array
$path array
리턴 array

프로퍼티 상세

$_XMLNS_FAMILIAR 공개적으로 프로퍼티

public $_XMLNS_FAMILIAR

$channel 공개적으로 프로퍼티

public $channel

$feed_type 공개적으로 프로퍼티

public $feed_type

$feed_version 공개적으로 프로퍼티

public $feed_version

$image 공개적으로 프로퍼티

public $image

$inImage 공개적으로 프로퍼티

* MagpieFromSimplePie::handleAttributes()
public $inImage

$inTextInput 공개적으로 프로퍼티

public $inTextInput

$items 공개적으로 프로퍼티

public $items

$originals 공개적으로 프로퍼티

public $originals

$pie 공개적으로 프로퍼티

public $pie

$textinput 공개적으로 프로퍼티

public $textinput