BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
RSSItemCreator Class Reference

Public Member Functions

 __get ($name)
 
 setSource ($url)
 
 setEnclosure ($url, $size, $type)
 
 setCategory ($category, $domain=false)
 
 setPubDate ($timestamp)
 
 setGUID ($guid, $isPermaLink= 'true')
 
 setComments ($url)
 
 setAuthor ($mail, $name=false)
 

Static Public Member Functions

static createItem ($title, $link, $description)
 

Protected Member Functions

 __construct ($title, $link, $description)
 

Protected Attributes

 $title = false
 
 $link = false
 
 $description = false
 
 $source = false
 
 $enclosure = false
 
 $category = false
 
 $pubDate = false
 
 $guid = false
 
 $comments = false
 
 $author = false
 

Constructor & Destructor Documentation

RSSItemCreator::__construct (   $title,
  $link,
  $description 
)
protected

constructor of RSSItemCreator

Parameters
string$titlethe title of the item
string$linkthe link to the item
string$descriptionthe description of the item

Member Function Documentation

RSSItemCreator::__get (   $name)

magic getter

Parameters
string$name
Returns
mixed
static RSSItemCreator::createItem (   $title,
  $link,
  $description 
)
static

Create a new RSS item from the given data and return a RSSItemCreator instance, which hold this item.

Parameters
string$titlethe title of the item
string$linkthe link to the item
string$descriptionthe description of the item
Returns
RSSItemCreator returns false, when the given link don't pass the test for valid URLs
RSSItemCreator::setAuthor (   $mail,
  $name = false 
)

set the informations of the author of this item

Parameters
string$mail
string$name
RSSItemCreator::setCategory (   $category,
  $domain = false 
)

set the category of the item

Parameters
string$category
domain$domain
RSSItemCreator::setComments (   $url)

set the comment URL

Parameters
string$url
RSSItemCreator::setGUID (   $guid,
  $isPermaLink = 'true' 
)

set the GUID

Parameters
string$guid
bool$isPermaLink
RSSItemCreator::setPubDate (   $timestamp)

set the timestamp for the publication date

Parameters
int$timestamp
RSSItemCreator::setSource (   $url)

set the source of the item

Parameters
string$url

The documentation for this class was generated from the following file: