Feed Entry Class. More...
Public Member Functions | |
__construct (array $values=array()) | |
Constructor. | |
__get ($key) | |
Getter. | |
__set ($key, $value) | |
Setter. | |
getId () | |
Get id. | |
setId ($id) | |
Set id. | |
getTitle () | |
Get title. | |
setTitle ($title) | |
Set title. | |
getDate () | |
Get date (RFC 2822) | |
setDate ($date) | |
Set date. | |
getAuthor () | |
Get author. | |
setAuthor (array $author) | |
Set author. | |
getDescription () | |
Get description. | |
setDescription ($description) | |
Set description. | |
getContent () | |
Get content. | |
setContent ($content) | |
Set content. | |
getLink () | |
Get link. | |
setLink ($url) | |
Set link. | |
getComments () | |
Get comments url. | |
setComments ($url) | |
Sets comments url. | |
Protected Attributes | |
$_id | |
$_title | |
Entry title. | |
$_date | |
Entry date (RFC 2822) | |
$_author | |
Entry author. | |
$_decription | |
$content | |
Entry content. | |
$link | |
Entry link. | |
$comments | |
Entry comments URL. |
Feed Entry Class.
Definition at line 17 of file axFeedEntry.class.php.
axFeedEntry::__construct | ( | array $ | values = array() | ) |
Constructor.
You may pass an array of attributes to initialize the axFeedEntry propreties.
array | $values | [optional] [default array() ] |
Definition at line 74 of file axFeedEntry.class.php.
axFeedEntry::__get | ( | $ | key | ) |
Getter.
string | $key |
InvalidArgumentException | If $key doesn't exists |
Definition at line 89 of file axFeedEntry.class.php.
axFeedEntry::__set | ( | $ | key, |
$ | value | ||
) |
Setter.
string | $key | |
mixed | $value |
Definition at line 103 of file axFeedEntry.class.php.
axFeedEntry::setAuthor | ( | array $ | author | ) |
Set author.
InvalidArgumentException | If author's mail, name or URI is invalid |
array | $author |
Definition at line 194 of file axFeedEntry.class.php.
axFeedEntry::setComments | ( | $ | url | ) |
Sets comments url.
string | $url |
InvalidArgumentException | If $url parameter is not a valid URL |
Definition at line 293 of file axFeedEntry.class.php.
axFeedEntry::setContent | ( | $ | content | ) |
Set content.
string | $content |
Definition at line 249 of file axFeedEntry.class.php.
axFeedEntry::setDate | ( | $ | date | ) |
Set date.
Date parameter may be integer or string; it will be converted to RFC 2822 date.
mixed | $date |
Definition at line 168 of file axFeedEntry.class.php.
axFeedEntry::setDescription | ( | $ | description | ) |
Set description.
string | $description |
Definition at line 228 of file axFeedEntry.class.php.
axFeedEntry::setId | ( | $ | id | ) |
Set id.
First parameter $id
will be converted to integer
mixed | $id |
Definition at line 126 of file axFeedEntry.class.php.
axFeedEntry::setLink | ( | $ | url | ) |
Set link.
string | $url |
InvalidArgumentException | If $url parameter is not a valid URL |
Definition at line 270 of file axFeedEntry.class.php.
axFeedEntry::setTitle | ( | $ | title | ) |
Set title.
string | $title |
Definition at line 146 of file axFeedEntry.class.php.
string axFeedEntry::$_author [protected] |
Entry author.
Definition at line 41 of file axFeedEntry.class.php.
string axFeedEntry::$_date [protected] |
Entry date (RFC 2822)
Definition at line 35 of file axFeedEntry.class.php.
axFeedEntry::$_decription [protected] |
Definition at line 47 of file axFeedEntry.class.php.
integer axFeedEntry::$_id [protected] |
Entry ID
Definition at line 23 of file axFeedEntry.class.php.
string axFeedEntry::$_title [protected] |
Entry title.
Definition at line 29 of file axFeedEntry.class.php.
string axFeedEntry::$comments [protected] |
Entry comments URL.
Definition at line 65 of file axFeedEntry.class.php.
string axFeedEntry::$content [protected] |
Entry content.
Definition at line 53 of file axFeedEntry.class.php.
string axFeedEntry::$link [protected] |
Entry link.
Definition at line 59 of file axFeedEntry.class.php.