@@ -168,6 +168,9 @@ discard block |
||
168 | 168 | $this->setRelations(); |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param string $name |
|
173 | + */ |
|
171 | 174 | private function getDBVariable($name) |
172 | 175 | { |
173 | 176 | if (isset($this->dbValues[$name])) { |
@@ -187,6 +190,9 @@ discard block |
||
187 | 190 | return in_array($name, $this->dbVariables); |
188 | 191 | } |
189 | 192 | |
193 | + /** |
|
194 | + * @param string $name |
|
195 | + */ |
|
190 | 196 | private function getProtectedVariable($name) |
191 | 197 | { |
192 | 198 | // Variable exists, and is already loaded |
@@ -207,6 +213,9 @@ discard block |
||
207 | 213 | return null; |
208 | 214 | } |
209 | 215 | |
216 | + /** |
|
217 | + * @param string $name |
|
218 | + */ |
|
210 | 219 | private function getRelation($name) |
211 | 220 | { |
212 | 221 | if (isset($this->relationValues[$name]) && $this->isRelationLoaded($name)) { |
@@ -238,7 +247,7 @@ discard block |
||
238 | 247 | /** |
239 | 248 | * Define object relations |
240 | 249 | * |
241 | - * @return object |
|
250 | + * @return DBObject |
|
242 | 251 | */ |
243 | 252 | protected function setRelations() |
244 | 253 | { |
@@ -468,6 +477,9 @@ discard block |
||
468 | 477 | return $obj; |
469 | 478 | } |
470 | 479 | |
480 | + /** |
|
481 | + * @param string $sql |
|
482 | + */ |
|
471 | 483 | public function loadFromSql($sql, $sql_params = []) |
472 | 484 | { |
473 | 485 | $this->connectDB(); |