| 1 | <?php |
||
| 18 | class Rdf extends Rss |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Format version |
||
| 23 | */ |
||
| 24 | const VERSION = '1.0'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * RDF document must have a <rdf> root node |
||
| 28 | */ |
||
| 29 | const ROOT_NODE_TAGNAME = 'rdf'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * publication date |
||
| 33 | */ |
||
| 34 | const DATE_NODE_TAGNAME = 'dc:date'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Tells if the parser can handle the feed or not |
||
| 38 | * @param Document $document |
||
| 39 | * @return boolean |
||
| 40 | */ |
||
| 41 | public function canHandle(Document $document) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param DOMDocument $document |
||
| 48 | * @return \DomElement |
||
| 49 | */ |
||
| 50 | public function getMainElement(\DOMDocument $document) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return RuleSet |
||
| 57 | */ |
||
| 58 | public function buildFeedRuleSet() |
||
| 65 | } |
||
| 66 |