@@ 2434-2446 (lines=13) @@ | ||
2431 | $this->_config->getLanguage()->getLanguage() |
|
2432 | ); |
|
2433 | ||
2434 | if ($result = $this->_config->getDb()->query($query)) { |
|
2435 | if ($row = $this->_config->getDb()->fetchObject($result)) { |
|
2436 | $question = array( |
|
2437 | 'id' => $row->id, |
|
2438 | 'lang' => $row->lang, |
|
2439 | 'username' => $row->username, |
|
2440 | 'email' => $row->email, |
|
2441 | 'category_id' => $row->category_id, |
|
2442 | 'question' => $row->question, |
|
2443 | 'created' => $row->created, |
|
2444 | 'is_visible' => $row->is_visible, ); |
|
2445 | } |
|
2446 | } |
|
2447 | ||
2448 | return $question; |
|
2449 | } |
|
@@ 2478-2492 (lines=15) @@ | ||
2475 | ($all == false ? " AND is_visible = 'Y'" : '') |
|
2476 | ); |
|
2477 | ||
2478 | if ($result = $this->_config->getDb()->query($query)) { |
|
2479 | while ($row = $this->_config->getDb()->fetchObject($result)) { |
|
2480 | $questions[] = array( |
|
2481 | 'id' => $row->id, |
|
2482 | 'lang' => $row->lang, |
|
2483 | 'username' => $row->username, |
|
2484 | 'email' => $row->email, |
|
2485 | 'category_id' => $row->category_id, |
|
2486 | 'question' => $row->question, |
|
2487 | 'created' => $row->created, |
|
2488 | 'answer_id' => $row->answer_id, |
|
2489 | 'is_visible' => $row->is_visible, |
|
2490 | ); |
|
2491 | } |
|
2492 | } |
|
2493 | ||
2494 | return $questions; |
|
2495 | } |