>> YANA 4 PHP Framework >> Docs For Class RSSitem

Class RSSitem

Description

«entity» RSS item

This class represents an item of an RSS feed.

Note: all attributes are optional, but at least one of title or description must be set.

  • access: public

Located in /plugins/default_library/class_rss.php

Object
   |
   --RSSitem
Variable Summary
string $author
array $category
string $comments
string $description
string $link
string $pubDate
string $title
Method Summary

Variables

string $author = ""

Email address of the author

this field is optional

  • access: public
array $category = array()

include item in one or more categories

this field is optional

  • access: public
string $comments = ""

URL of a page for comments

this field is optional

  • access: public
string $description = ""

item synopsis, note that this may contain HTML

this field is optional

  • access: public
string $link = ""

URL of the item

this field is optional

  • access: public
string $pubDate = ""

indicates when the item was published (auto-generated if not provided)

this field is optional

  • access: public
string $title = ""

title of the item

this field is optional

  • access: public

Methods

constructor
RSSitem RSSitem ()
Description:

creates and initializes a new instance of this class

return item as associative array
array get ()
Description:

This checks the values of all attributes, creates a unique id for this item, and returns an associative array of all object vars.

Returns an empty array and issues an E_USER_NOTICE on error.

  • access: public
inherited from base classes

Inherited From Object

Documentation generated on Sun, 11 Mar 2007 15:02:42 +0100 by phpDocumentor 1.3.1

yana author: Thomas MeyerHomepage: www.yanaframework.net