@@ 101-108 (lines=8) @@ | ||
98 | * @param $id |
|
99 | * @return array|null |
|
100 | */ |
|
101 | public function getLinkedData($type, $id) |
|
102 | { |
|
103 | if (!isset($this->linked[$type][$id])) { |
|
104 | return null; |
|
105 | } |
|
106 | ||
107 | return $this->linked[$type][$id]['data']; |
|
108 | } |
|
109 | ||
110 | public function getLinkedDataIndex($type, $id) |
|
111 | { |
|
@@ 110-117 (lines=8) @@ | ||
107 | return $this->linked[$type][$id]['data']; |
|
108 | } |
|
109 | ||
110 | public function getLinkedDataIndex($type, $id) |
|
111 | { |
|
112 | if (!isset($this->linked[$type][$id])) { |
|
113 | return null; |
|
114 | } |
|
115 | ||
116 | return $this->linked[$type][$id]['idx']; |
|
117 | } |
|
118 | } |
|
119 |