1 | <?php |
||
21 | class RdfParser extends Parser |
||
22 | { |
||
23 | protected $mandatoryFields = array( |
||
24 | 'channel', |
||
25 | ); |
||
26 | |||
27 | /** |
||
28 | * |
||
29 | */ |
||
30 | 1 | public function __construct() |
|
34 | |||
35 | /** |
||
36 | * @param SimpleXMLElement $xmlBody |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | 2 | public function canHandle(SimpleXMLElement $xmlBody) |
|
44 | |||
45 | /** |
||
46 | * @param SimpleXMLElement $xmlBody |
||
47 | * @param FeedInterface $feed |
||
48 | * @param array $filters |
||
49 | * |
||
50 | * @return FeedInInterface |
||
51 | */ |
||
52 | 1 | protected function parseBody(SimpleXMLElement $xmlBody, FeedInterface $feed, array $filters) |
|
81 | |||
82 | /** |
||
83 | * RDF format doesn't support enclosures. |
||
84 | * |
||
85 | * @param SimpleXMLElement $element |
||
86 | * @param ItemInInterface $item |
||
87 | * |
||
88 | * @return $this |
||
89 | */ |
||
90 | protected function handleEnclosure(SimpleXMLElement $element, ItemInInterface $item) |
||
94 | } |
||
95 |