| @@ 2385-2397 (lines=13) @@ | ||
| 2382 | $this->_config->getLanguage()->getLanguage() |
|
| 2383 | ); |
|
| 2384 | ||
| 2385 | if ($result = $this->_config->getDb()->query($query)) { |
|
| 2386 | if ($row = $this->_config->getDb()->fetchObject($result)) { |
|
| 2387 | $question = array( |
|
| 2388 | 'id' => $row->id, |
|
| 2389 | 'lang' => $row->lang, |
|
| 2390 | 'username' => $row->username, |
|
| 2391 | 'email' => $row->email, |
|
| 2392 | 'category_id' => $row->category_id, |
|
| 2393 | 'question' => $row->question, |
|
| 2394 | 'created' => $row->created, |
|
| 2395 | 'is_visible' => $row->is_visible, ); |
|
| 2396 | } |
|
| 2397 | } |
|
| 2398 | ||
| 2399 | return $question; |
|
| 2400 | } |
|
| @@ 2428-2442 (lines=15) @@ | ||
| 2425 | ($all == false ? " AND is_visible = 'Y'" : '') |
|
| 2426 | ); |
|
| 2427 | ||
| 2428 | if ($result = $this->_config->getDb()->query($query)) { |
|
| 2429 | while ($row = $this->_config->getDb()->fetchObject($result)) { |
|
| 2430 | $questions[] = array( |
|
| 2431 | 'id' => $row->id, |
|
| 2432 | 'lang' => $row->lang, |
|
| 2433 | 'username' => $row->username, |
|
| 2434 | 'email' => $row->email, |
|
| 2435 | 'category_id' => $row->category_id, |
|
| 2436 | 'question' => $row->question, |
|
| 2437 | 'created' => $row->created, |
|
| 2438 | 'answer_id' => $row->answer_id, |
|
| 2439 | 'is_visible' => $row->is_visible, |
|
| 2440 | ); |
|
| 2441 | } |
|
| 2442 | } |
|
| 2443 | ||
| 2444 | return $questions; |
|
| 2445 | } |
|