-
Notifications
You must be signed in to change notification settings - Fork 2
/
AtomLinkAdapter.php
58 lines (43 loc) · 1.33 KB
/
AtomLinkAdapter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
require_once 'SimpleAtomAdapter.php';
class AtomLinkAdapter extends SimpleAtomAdapter {
public function getHref() {
return $this->_getAttribute(AtomNS::HREF_ATTRIBUTE);
}
public function getHreflang() {
return $this->_getAttribute(AtomNS::HREFLANG_ATTRIBUTE);
}
public function getLength() {
return $this->_getAttribute(AtomNS::LENGTH_ATTRIBUTE);
}
public function getRel() {
return $this->_getAttribute(AtomNS::REL_ATTRIBUTE);
}
public function getTitle() {
return $this->_getAttribute(AtomNS::TITLE_ATTRIBUTE);
}
public function getType() {
return $this->_getAttribute(AtomNS::TYPE_ATTRIBUTE);
}
public function setHref($value) {
$this->_setAttribute(AtomNS::HREF_ATTRIBUTE, $value);
}
public function setHreflang($value) {
$this->_setAttribute(AtomNS::HREFLANG_ATTRIBUTE, $value);
}
public function setLength($value) {
$this->_setAttribute(AtomNS::LENGTH_ATTRIBUTE, $value);
}
public function setRel($value) {
$this->_setAttribute(AtomNS::REL_ATTRIBUTE, $value);
}
public function setTitle($value) {
$this->_setAttribute(AtomNS::TITLE_ATTRIBUTE, $value);
}
public function setType($value) {
$this->_setAttribute(AtomNS::TYPE_ATTRIBUTE, $value);
}
public function __construct($data, $data_is_url=false) {
parent::__construct(AtomNS::LINK_ELEMENT, $data, $data_is_url);
}
}