Документация по Joomla 1.7

SimplePie\SimplePie_Item
libraries/simplepie/simplepie.php at line 3109

Class SimplePie_Item

SimplePie_Item

public class SimplePie_Item


Field Summary
mixed

$data

mixed

$feed

Constructor Summary
void

__construct(mixed feed, mixed data)

Method Summary
private void

__toString()

void

get_item_tags(mixed namespace, mixed tag)

void

get_base(mixed element)

void

sanitize(mixed data, mixed type, str base)

void

get_feed()

void

get_id(bool hash)

void

get_title()

void

get_description(bool description_only)

void

get_content(bool content_only)

void

get_category(int key)

void

get_categories()

void

get_author(int key)

void

get_contributor(int key)

void

get_contributors()

void

get_authors()

void

get_copyright()

void

get_date(str date_format)

void

get_local_date(str date_format)

void

get_permalink()

void

get_link(int key, str rel)

void

get_links(str rel)

void

get_enclosure(int key, mixed prefer)

void

get_enclosures()

Grabs all available enclosures (podcasts, etc.)Supports the RSS tag, as well as Media RSS and iTunes RSS.

void

get_latitude()

void

get_longitude()

void

get_source()

private mixed

add_to_service(string item_url, string title_url, mixed summary_url)

Creates the add_to_* methods' return data

void

add_to_blinklist()

void

add_to_blogmarks()

void

add_to_delicious()

void

add_to_digg()

void

add_to_furl()

void

add_to_magnolia()

void

add_to_myweb20()

void

add_to_newsvine()

void

add_to_reddit()

void

add_to_segnalo()

void

add_to_simpy()

void

add_to_spurl()

void

add_to_wists()

void

search_technorati()

Field Detail

libraries/simplepie/simplepie.php at line 3112

data

public mixed $data = array()

libraries/simplepie/simplepie.php at line 3111

feed

public mixed $feed = 0

Constructor Detail

libraries/simplepie/simplepie.php at line 3114

__construct

public void __construct(mixed feed, mixed data)

Method Detail

libraries/simplepie/simplepie.php at line 3120

__toString

private void __toString()

libraries/simplepie/simplepie.php at line 3136

get_item_tags

public void get_item_tags(mixed namespace, mixed tag)

libraries/simplepie/simplepie.php at line 3148

get_base

public void get_base(mixed element)

libraries/simplepie/simplepie.php at line 3153

sanitize

public void sanitize(mixed data, mixed type, str base)

libraries/simplepie/simplepie.php at line 3158

get_feed

public void get_feed()

libraries/simplepie/simplepie.php at line 3163

get_id

public void get_id(bool hash)

libraries/simplepie/simplepie.php at line 3206

get_title

public void get_title()

libraries/simplepie/simplepie.php at line 3246

get_description

public void get_description(bool description_only)

libraries/simplepie/simplepie.php at line 3290

get_content

public void get_content(bool content_only)

libraries/simplepie/simplepie.php at line 3314

get_category

public void get_category(int key)

libraries/simplepie/simplepie.php at line 3327

get_categories

public void get_categories()

libraries/simplepie/simplepie.php at line 3384

get_author

public void get_author(int key)

libraries/simplepie/simplepie.php at line 3397

get_contributor

public void get_contributor(int key)

libraries/simplepie/simplepie.php at line 3410

get_contributors

public void get_contributors()

libraries/simplepie/simplepie.php at line 3468

get_authors

public void get_authors()

libraries/simplepie/simplepie.php at line 3550

get_copyright

public void get_copyright()

libraries/simplepie/simplepie.php at line 3570

get_date

public void get_date(str date_format)

libraries/simplepie/simplepie.php at line 3638

get_local_date

public void get_local_date(str date_format)

libraries/simplepie/simplepie.php at line 3654

get_permalink

public void get_permalink()

libraries/simplepie/simplepie.php at line 3672

get_link

public void get_link(int key, str rel)

libraries/simplepie/simplepie.php at line 3685

get_links

public void get_links(str rel)

libraries/simplepie/simplepie.php at line 3762

get_enclosure

public void get_enclosure(int key, mixed prefer)

Todo:
Add ability to prefer one type of content over another (in a media group).

libraries/simplepie/simplepie.php at line 3785

get_enclosures

public void get_enclosures()

Grabs all available enclosures (podcasts, etc.)

Supports the RSS tag, as well as Media RSS and iTunes RSS.

At this point, we're pretty much assuming that all enclosures for an item are the same content. Anything else is too complicated to properly support.

Todo:
Add support for end-user defined sorting of enclosures by type/handler (so we can prefer the faster-loading FLV over MP4).
If an element exists at a level, but it's value is empty, we should fall back to the value from the parent (if it exists).

libraries/simplepie/simplepie.php at line 5576

get_latitude

public void get_latitude()

libraries/simplepie/simplepie.php at line 5592

get_longitude

public void get_longitude()

libraries/simplepie/simplepie.php at line 5612

get_source

public void get_source()

libraries/simplepie/simplepie.php at line 5633

add_to_service

private mixed add_to_service(string item_url, string title_url, mixed summary_url)

Creates the add_to_* methods' return data

Parameters:
item_url - String to prefix to the item permalink
title_url - String to prefix to the item title (and suffix to the item permalink)
Returns:
URL if feed exists, false otherwise

libraries/simplepie/simplepie.php at line 5654

add_to_blinklist

public void add_to_blinklist()

libraries/simplepie/simplepie.php at line 5659

add_to_blogmarks

public void add_to_blogmarks()

libraries/simplepie/simplepie.php at line 5664

add_to_delicious

public void add_to_delicious()

libraries/simplepie/simplepie.php at line 5669

add_to_digg

public void add_to_digg()

libraries/simplepie/simplepie.php at line 5674

add_to_furl

public void add_to_furl()

libraries/simplepie/simplepie.php at line 5679

add_to_magnolia

public void add_to_magnolia()

libraries/simplepie/simplepie.php at line 5684

add_to_myweb20

public void add_to_myweb20()

libraries/simplepie/simplepie.php at line 5689

add_to_newsvine

public void add_to_newsvine()

libraries/simplepie/simplepie.php at line 5694

add_to_reddit

public void add_to_reddit()

libraries/simplepie/simplepie.php at line 5699

add_to_segnalo

public void add_to_segnalo()

libraries/simplepie/simplepie.php at line 5704

add_to_simpy

public void add_to_simpy()

libraries/simplepie/simplepie.php at line 5709

add_to_spurl

public void add_to_spurl()

libraries/simplepie/simplepie.php at line 5714

add_to_wists

public void add_to_wists()

libraries/simplepie/simplepie.php at line 5719

search_technorati

public void search_technorati()

Документация по Joomla 1.7