1 | <?php |
||
19 | class Media extends RuleAbstract |
||
20 | { |
||
21 | |||
22 | const NODE_NAME = 'enclosure'; |
||
23 | |||
24 | protected $urlAttributeName = 'url'; |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | 2 | public function getUrlAttributeName() |
|
33 | |||
34 | /** |
||
35 | * @param string $name |
||
36 | * @return $this |
||
37 | */ |
||
38 | 4 | public function setUrlAttributeName($name) |
|
44 | |||
45 | /** |
||
46 | * @param NodeInterface $node |
||
47 | * @param \DOMElement $element |
||
48 | * @return $this |
||
49 | */ |
||
50 | 2 | public function setProperty(NodeInterface $node, \DOMElement $element) |
|
63 | |||
64 | /** |
||
65 | * creates the accurate DomElement content according to the $item's property |
||
66 | * |
||
67 | * @param \DomDocument $document |
||
68 | * @param NodeInterface $node |
||
69 | * @return \DomElement |
||
70 | */ |
||
71 | public function createElement(\DomDocument $document, NodeInterface $node) |
||
81 | |||
82 | /** |
||
83 | * @param \DomDocument $document |
||
84 | * @param MediaInterface $media |
||
85 | * @return \DomElement |
||
86 | */ |
||
87 | public function createMediaElement(\DomDocument $document, MediaInterface $media) |
||
96 | } |
||
97 |