|
@@ 1063-1097 (lines=35) @@
|
| 1060 |
|
return $this->sanitize->sanitize($data, $type, $base); |
| 1061 |
|
} |
| 1062 |
|
|
| 1063 |
|
public function get_title() |
| 1064 |
|
{ |
| 1065 |
|
if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title')) |
| 1066 |
|
{ |
| 1067 |
|
return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0])); |
| 1068 |
|
} |
| 1069 |
|
elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'title')) |
| 1070 |
|
{ |
| 1071 |
|
return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_03_construct_type', array($return[0]['attribs'])), $this->get_base($return[0])); |
| 1072 |
|
} |
| 1073 |
|
elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'title')) |
| 1074 |
|
{ |
| 1075 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0])); |
| 1076 |
|
} |
| 1077 |
|
elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'title')) |
| 1078 |
|
{ |
| 1079 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0])); |
| 1080 |
|
} |
| 1081 |
|
elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'title')) |
| 1082 |
|
{ |
| 1083 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0])); |
| 1084 |
|
} |
| 1085 |
|
elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_11, 'title')) |
| 1086 |
|
{ |
| 1087 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 1088 |
|
} |
| 1089 |
|
elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_10, 'title')) |
| 1090 |
|
{ |
| 1091 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 1092 |
|
} |
| 1093 |
|
else |
| 1094 |
|
{ |
| 1095 |
|
return null; |
| 1096 |
|
} |
| 1097 |
|
} |
| 1098 |
|
|
| 1099 |
|
public function get_category($key = 0) |
| 1100 |
|
{ |
|
@@ 12671-12705 (lines=35) @@
|
| 12668 |
|
{ |
| 12669 |
|
return $this->item; |
| 12670 |
|
} |
| 12671 |
|
public function get_title() |
| 12672 |
|
{ |
| 12673 |
|
if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'title')) |
| 12674 |
|
{ |
| 12675 |
|
return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0])); |
| 12676 |
|
} |
| 12677 |
|
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'title')) |
| 12678 |
|
{ |
| 12679 |
|
return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_03_construct_type', array($return[0]['attribs'])), $this->get_base($return[0])); |
| 12680 |
|
} |
| 12681 |
|
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'title')) |
| 12682 |
|
{ |
| 12683 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0])); |
| 12684 |
|
} |
| 12685 |
|
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'title')) |
| 12686 |
|
{ |
| 12687 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0])); |
| 12688 |
|
} |
| 12689 |
|
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'title')) |
| 12690 |
|
{ |
| 12691 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_MAYBE_HTML, $this->get_base($return[0])); |
| 12692 |
|
} |
| 12693 |
|
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'title')) |
| 12694 |
|
{ |
| 12695 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 12696 |
|
} |
| 12697 |
|
elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'title')) |
| 12698 |
|
{ |
| 12699 |
|
return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
| 12700 |
|
} |
| 12701 |
|
else |
| 12702 |
|
{ |
| 12703 |
|
return null; |
| 12704 |
|
} |
| 12705 |
|
} |
| 12706 |
|
public function get_category($key = 0) |
| 12707 |
|
{ |
| 12708 |
|
$categories = $this->get_categories(); |