|
@@ 161-170 (lines=10) @@
|
| 158 |
|
* @param string $name The requested variable |
| 159 |
|
* @return string|null The value of the variable, or NULL if it can't be accessed |
| 160 |
|
*/ |
| 161 |
|
public function __get($name) { |
| 162 |
|
if (isset($this->object->$name)) { |
| 163 |
|
\uri\generate::scheme($this->object); |
| 164 |
|
\uri\generate::authority($this->object); |
| 165 |
|
return $this->object->$name; |
| 166 |
|
} else { |
| 167 |
|
$this->_err('UNDEFINED', debug_backtrace(), $name); |
| 168 |
|
return NULL; |
| 169 |
|
} |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
/** |
| 173 |
|
* Allows access to the different parts of the URI to be synchronized. This |
|
@@ 198-205 (lines=8) @@
|
| 195 |
|
* @param string $name The requested variable |
| 196 |
|
* @return boolean Returns TRUE if the variable is not empty, FALSE otherwise |
| 197 |
|
*/ |
| 198 |
|
public function __isset($name) { |
| 199 |
|
\uri\generate::scheme($this->object); |
| 200 |
|
\uri\generate::authority($this->object); |
| 201 |
|
if (isset($this->object->$name)) { |
| 202 |
|
return !empty($this->object->$name); |
| 203 |
|
} |
| 204 |
|
return FALSE; |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
/** |
| 208 |
|
* Allows access to the different parts of the URI to be synchronized. This |