1 | <?php |
||
8 | abstract class AbstractVendor |
||
9 | { |
||
10 | /** |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected $isOrginal = false; |
||
14 | |||
15 | /** |
||
16 | * @param SimpleXMLElement $feed |
||
17 | * |
||
18 | * @return array |
||
19 | */ |
||
20 | public function buildFeed(SimpleXMLElement $feed) |
||
37 | |||
38 | /** |
||
39 | * @param SimpleXMLElement|mixed $channel |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | protected function getEpisodes($channel) |
||
62 | |||
63 | /** |
||
64 | * @return array |
||
65 | */ |
||
66 | protected function getKeywords($item) |
||
70 | |||
71 | /** |
||
72 | * @param SimpleXMLElement $value |
||
73 | * |
||
74 | * @return null|string |
||
75 | */ |
||
76 | protected function getAudioUrl($value) |
||
80 | |||
81 | /** |
||
82 | * @param SimpleXMLElement $value |
||
83 | * |
||
84 | * @return int |
||
85 | */ |
||
86 | protected function getEpisodeSize($value) |
||
90 | |||
91 | /** |
||
92 | * @param SimpleXMLElement $item |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | protected function getPublishedDate($item) |
||
103 | |||
104 | /** |
||
105 | * @param SimpleXMLElement|mixed $item |
||
106 | * @param string $path |
||
107 | * |
||
108 | * @return SimpleXMLElement |
||
109 | */ |
||
110 | protected function getValueByPath($item, $path) |
||
115 | |||
116 | /** |
||
117 | * @param SimpleXMLElement|mixed $item |
||
118 | * |
||
119 | * @return int |
||
120 | */ |
||
121 | protected function getEpisodeDuration($item) |
||
134 | |||
135 | /** |
||
136 | * @param SimpleXMLElement $item |
||
137 | * |
||
138 | * @param SimpleXMLElement $channel |
||
139 | * |
||
140 | * @return string |
||
141 | */ |
||
142 | protected function getEpisodeImage($item, $channel) |
||
148 | |||
149 | /** |
||
150 | * @param SimpleXMLElement|mixed $channel |
||
151 | * |
||
152 | * @return array |
||
153 | */ |
||
154 | protected function fetchCategories($channel) |
||
173 | } |
||
174 |