23 $this->magpie_item = $a_item;
32 if (isset($a_item[
"link_"]))
39 if (isset($a_item[
"link"]))
47 if (isset($a_item[
"atom_content"]))
52 else if (isset($a_item[
"summary"]))
57 else if (isset($a_item[
"description"]))
64 if (isset($a_item[
"pubdate"]))
69 else if (isset($a_item[
"updated"]))
76 if (isset($a_item[
"dc"][
"creator"]))
93 while($old_str != $a_str)
96 $a_str = preg_replace(
"/<a href=\"([^\"]*)\">/i",
97 "/<a href=\"\\1\" target=\"_blank\">/", $a_str);
109 return $this->magpie_item;
119 $this->title = $a_title;
139 $this->link = $a_link;
159 $this->summary = $a_summary;
169 return $this->summary;
179 $this->date = $a_date;
219 $this->author = $a_author;
229 return $this->author;
Wraps $item arrays from magpie.
setLink($a_link)
Set Link.
getMagpieItem()
Get Magpie Item.
setAuthor($a_author)
Set Author.
setTitle($a_title)
Set Title.
setMagpieItem($a_item)
Set Magpie Item and read it into internal variables.
setDate($a_date)
Set Date.
static secureLink($a_str)
setSummary($a_summary)
Set Summary.
static secureString($a_str, $a_strip_html=true, $a_allow="")
Remove unsecure tags.