| @@ 117-128 (lines=12) @@ | ||
| 114 | return false; |
|
| 115 | } |
|
| 116 | ||
| 117 | public function __get($name) { |
|
| 118 | if (isset($this->connection->$name)) { |
|
| 119 | return $this->connection->$name; |
|
| 120 | } |
|
| 121 | if (!is_object($this->curQuery)) { |
|
| 122 | $this->curQuery = $this->newQuery(); |
|
| 123 | } |
|
| 124 | if (isset($this->curQuery->$name)) { |
|
| 125 | return $this->curQuery->$name; |
|
| 126 | } |
|
| 127 | } |
|
| 128 | ||
| 129 | public function __set($name, $value) { |
|
| 130 | if (isset($this->connection->$name)) { |
|
| 131 | return $this->connection->$name = $value; |
|
| @@ 129-140 (lines=12) @@ | ||
| 126 | } |
|
| 127 | } |
|
| 128 | ||
| 129 | public function __set($name, $value) { |
|
| 130 | if (isset($this->connection->$name)) { |
|
| 131 | return $this->connection->$name = $value; |
|
| 132 | } |
|
| 133 | if (!is_object($this->curQuery)) { |
|
| 134 | $this->curQuery = $this->newQuery(); |
|
| 135 | } |
|
| 136 | if (isset($this->curQuery->$name)) { |
|
| 137 | return $this->curQuery->$name = $value; |
|
| 138 | } |
|
| 139 | } |
|
| 140 | } |
|