ZenMagick 0.9.6


org.zenmagick.model.rss.ZMRssChannel

Class ZMRssChannel

ZMObject
|
+--ZMRssChannel

public class ZMRssChannel
extends ZMObject

A RSS feed channel.

ZenMagick wrapper around lastRSS.

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

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMRssChannel(mixed rs, array Channel)

Create new RSS channel.

Method Summary
string

getDescription()

Get the channel description.

string

getEncoding()

Get the channel encoding.

string

getImageHeight()

Get the channels image height.

string

getImageLink()

Get the channels image link.

string

getImageTitle()

Get the channels image title.

string

getImageWidth()

Get the channels image width.

string

getLastBuildDate()

Get the channels last build date.

string

getLink()

Get the channel link.

array

getProperties()

Get all properties.

string

getProperty(string name)

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

string

getTitle()

Get the channel title.

boolean

hasImage()

Checks if the channel has an image.

void

setDescription(string description)

Set the channel description.

void

setEncoding(string encoding)

Set the channel encoding.

void

setImageHeight(int height)

Set the channels image height.

void

setImageLink(mixed lin, string link)

set the channels image link.

void

setImageTitle(string title)

Set the channels image title.

void

setImageWidth(int width)

set the channels image width.

void

setLastBuildDate(string date)

Set the channels last build date.

void

setLink(string link)

Set the channel link.

void

setProperty(string name, string value)

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

void

setTitle(string title)

Set the channel title.

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

Constructor Detail

ZMRssChannel

public ZMRssChannel(mixed rs, array Channel)

Create new RSS channel.

Parameters:
Channel - data.

Method Detail

getDescription

public string getDescription()

Get the channel description.

Returns:
The channel description.

getEncoding

public string getEncoding()

Get the channel encoding.

Returns:
The channel encoding.

getImageHeight

public string getImageHeight()

Get the channels image height.

Returns:
The channels image height.

getImageLink

public string getImageLink()

Get the channels image link.

Returns:
The channels image link.

getImageTitle

public string getImageTitle()

Get the channels image title.

Returns:
The channels image title.

getImageWidth

public string getImageWidth()

Get the channels image width.

Returns:
The channels image width.

getLastBuildDate

public string getLastBuildDate()

Get the channels last build date.

Returns:
The channels last build date.

getLink

public string getLink()

Get the channel link.

Returns:
The channel 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.

getTitle

public string getTitle()

Get the channel title.

Returns:
The channel title.

hasImage

public boolean hasImage()

Checks if the channel has an image.

Returns:
true if a channel image is available, false if not.

setDescription

public void setDescription(string description)

Set the channel description.

Parameters:
description - The channel description.

setEncoding

public void setEncoding(string encoding)

Set the channel encoding.

Parameters:
encoding - The channel encoding.

setImageHeight

public void setImageHeight(int height)

Set the channels image height.

Parameters:
height - The channels image height.

setImageLink

public void setImageLink(mixed lin, string link)

set the channels image link.

Parameters:
link - The channels image link.

setImageTitle

public void setImageTitle(string title)

Set the channels image title.

Parameters:
title - The channels image title.

setImageWidth

public void setImageWidth(int width)

set the channels image width.

Parameters:
width - The channels image width.

setLastBuildDate

public void setLastBuildDate(string date)

Set the channels last build date.

Parameters:
date - The channels last build date.

setLink

public void setLink(string link)

Set the channel link.

Parameters:
link - The channel 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.

setTitle

public void setTitle(string title)

Set the channel title.

Parameters:
title - The channel title.

ZenMagick 0.9.6