@@ 115-126 (lines=12) @@ | ||
112 | * |
|
113 | * @return bool |
|
114 | */ |
|
115 | public function __isset($name) |
|
116 | { |
|
117 | switch ($name) { |
|
118 | case 'outertext': |
|
119 | case 'innertext': |
|
120 | case 'plaintext': |
|
121 | case 'tag': |
|
122 | return true; |
|
123 | default: |
|
124 | return $this->hasAttribute($name); |
|
125 | } |
|
126 | } |
|
127 | ||
128 | /** |
|
129 | * @param $name |
@@ 162-174 (lines=13) @@ | ||
159 | * |
|
160 | * @return string |
|
161 | */ |
|
162 | public function __get($name) |
|
163 | { |
|
164 | switch ($name) { |
|
165 | case 'outertext': |
|
166 | return $this->html(); |
|
167 | case 'innertext': |
|
168 | return $this->innerHtml(); |
|
169 | case 'plaintext': |
|
170 | return $this->text(); |
|
171 | } |
|
172 | ||
173 | return null; |
|
174 | } |
|
175 | ||
176 | /** |
|
177 | * @param string $selector |