@@ 161-173 (lines=13) @@ | ||
158 | * |
|
159 | * @return string |
|
160 | */ |
|
161 | public function __get($name) |
|
162 | { |
|
163 | switch ($name) { |
|
164 | case 'outertext': |
|
165 | return $this->html(); |
|
166 | case 'innertext': |
|
167 | return $this->innerHtml(); |
|
168 | case 'plaintext': |
|
169 | return $this->text(); |
|
170 | } |
|
171 | ||
172 | return null; |
|
173 | } |
|
174 | ||
175 | /** |
|
176 | * @param string $selector |
@@ 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 |