ZenMagick 0.9.6


org.zenmagick.model.rss.ZMRssItem

Class ZMRssItem

ZMObject
|
+--ZMRssItem

public class ZMRssItem
extends ZMObject

A RSS feed item.

ZenMagick wrapper around lastRSS.

Author:
DerManoMann
Version:
$Id: ZMRssItem.php 2121 2009-03-31 01:56:56Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMRssItem(mixed item, array Array)

Create new RSS item.

Method Summary
string

getCategory()

Get the item category.

string

getDescription()

Get the item description.

string

getLink()

Get the item link.

array

getProperties()

Get all properties.

string

getProperty(string name)

Custom get method for properties that do not have a dedicated access method.

string

getPubDate()

Get the item publish date.

string

getTitle()

Get the item title.

void

setCategory(string category)

set the item category.

void

setDescription(string description)

Set the item description.

void

setLink(string link)

Set the item link.

void

setProperty(string name, string value)

Custom set method for properties that do not have a dedicated access method.

void

setPubDate(string date)

Set the item publish date.

void

setTitle(string title)

Set the item title.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMRssItem

public ZMRssItem(mixed item, array Array)

Create new RSS item.

Parameters:
Array - of item data.

Method Detail

getCategory

public string getCategory()

Get the item category.

Returns:
The item category.

getDescription

public string getDescription()

Get the item description.

Returns:
The item description.

getLink

public string getLink()

Get the item link.

Returns:
The item link.

getProperties

public array getProperties()

Get all properties.

Returns:
Name/value map.

getProperty

public string getProperty(string name)

Custom get method for properties that do not have a dedicated access method.

Parameters:
name - The property name.
Returns:
value The value or null.

getPubDate

public string getPubDate()

Get the item publish date.

Returns:
The item publish date.

getTitle

public string getTitle()

Get the item title.

Returns:
The item title.

setCategory

public void setCategory(string category)

set the item category.

Parameters:
category - The item category.

setDescription

public void setDescription(string description)

Set the item description.

Parameters:
description - The item description.

setLink

public void setLink(string link)

Set the item link.

Parameters:
link - The item link.

setProperty

public void setProperty(string name, string value)

Custom set method for properties that do not have a dedicated access method.

Parameters:
name - The property name.
value - The value.

setPubDate

public void setPubDate(string date)

Set the item publish date.

Parameters:
date - The item publish date.

setTitle

public void setTitle(string title)

Set the item title.

Parameters:
title - The item title.

ZenMagick 0.9.6