| @@ 109-120 (lines=12) @@ | ||
| 106 | return false; |
|
| 107 | } |
|
| 108 | ||
| 109 | public function __get($name) { |
|
| 110 | if (isset($this->connection->$name)) { |
|
| 111 | return $this->connection->$name; |
|
| 112 | } |
|
| 113 | if (!is_object($this->curQuery)) { |
|
| 114 | $this->curQuery = $this->newQuery(); |
|
| 115 | } |
|
| 116 | if (isset($this->curQuery->$name)) { |
|
| 117 | return $this->curQuery->$name; |
|
| 118 | } |
|
| 119 | } |
|
| 120 | ||
| 121 | public function __set($name, $value) { |
|
| 122 | if (isset($this->connection->$name)) { |
|
| 123 | return $this->connection->$name = $value; |
|
| @@ 121-132 (lines=12) @@ | ||
| 118 | } |
|
| 119 | } |
|
| 120 | ||
| 121 | public function __set($name, $value) { |
|
| 122 | if (isset($this->connection->$name)) { |
|
| 123 | return $this->connection->$name = $value; |
|
| 124 | } |
|
| 125 | if (!is_object($this->curQuery)) { |
|
| 126 | $this->curQuery = $this->newQuery(); |
|
| 127 | } |
|
| 128 | if (isset($this->curQuery->$name)) { |
|
| 129 | return $this->curQuery->$name = $value; |
|
| 130 | } |
|
| 131 | } |
|
| 132 | } |
|