1 | <?php |
||
11 | class Jetpack_Podcast_Feed_Locator extends SimplePie_Locator { |
||
12 | /** |
||
13 | * Overrides the locator is_feed function to check for |
||
14 | * appropriate podcast elements. |
||
15 | * |
||
16 | * @param SimplePie_File $file The file being checked. |
||
17 | * @param boolean $check_html Adds text/html to the mimetypes checked. |
||
18 | */ |
||
19 | public function is_feed( $file, $check_html = false ) { |
||
22 | |||
23 | /** |
||
24 | * Checks the contents of the file for elements that make |
||
25 | * it a podcast feed. |
||
26 | * |
||
27 | * @param SimplePie_File $file The file being checked. |
||
28 | */ |
||
29 | private function is_podcast_feed( $file ) { |
||
42 | |||
43 | /** |
||
44 | * Safely loads an XML file |
||
45 | * |
||
46 | * @param string $xml A string of XML to load. |
||
47 | * @return DOMDocument|false A restulting DOM document or `false` if there is an error. |
||
48 | */ |
||
49 | private function safely_load_xml( $xml ) { |
||
79 | |||
80 | /** |
||
81 | * Checks the RSS feed for the presence of the itunes podcast namespace. |
||
82 | * It's pretty loose and just checks the URI for itunes.com |
||
83 | * |
||
84 | * @param DOMDocument $dom The XML document to check. |
||
85 | * @return boolean Whether the itunes namespace is defined. |
||
86 | */ |
||
87 | private function has_itunes_ns( $dom ) { |
||
99 | |||
100 | /** |
||
101 | * Checks the RSS feed for the presence of enclosures with an audio mimetype. |
||
102 | * |
||
103 | * @param DOMDocument $dom The XML document to check. |
||
104 | * @return boolean Whether enclosures were found. |
||
105 | */ |
||
106 | private function has_audio_enclosures( $dom ) { |
||
111 | |||
112 | } |
||
113 | |||
114 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.