23 $this->magpie_item = $a_item;
33 if (isset($a_item[
"link_"])) {
38 if (isset($a_item[
"link"])) {
45 if (isset($a_item[
"atom_content"])) {
49 } elseif (isset($a_item[
"summary"])) {
53 } elseif (isset($a_item[
"description"])) {
60 if (isset($a_item[
"pubdate"])) {
64 } elseif (isset($a_item[
"updated"])) {
71 if (isset($a_item[
"dc"][
"creator"])) {
86 $a_str = preg_replace_callback(
87 '/<a[^>]*?href=["\']([^"\']*)["\'][^>]*?>/i',
90 '<a href="%s" target="_blank" rel="noopener">',
107 return $this->magpie_item;
117 $this->title = $a_title;
137 $this->link = $a_link;
157 $this->summary = $a_summary;
177 $this->
date = $a_date;
217 $this->author = $a_author;
227 return $this->author;
Wraps $item arrays from magpie.
setLink($a_link)
Set Link.
getMagpieItem()
Get Magpie Item.
if(!array_key_exists('StateId', $_REQUEST)) $id
setAuthor($a_author)
Set Author.
setTitle($a_title)
Set Title.
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
setMagpieItem($a_item)
Set Magpie Item and read it into internal variables.
setDate($a_date)
Set Date.
static secureUrl($url)
Prepare secure href attribute.
static secureLink($a_str)
setSummary($a_summary)
Set Summary.
static secureString($a_str, $a_strip_html=true, $a_allow="")
Remove unsecure tags.