@@ 2405-2417 (lines=13) @@ | ||
2402 | $this->_config->getLanguage()->getLanguage() |
|
2403 | ); |
|
2404 | ||
2405 | if ($result = $this->_config->getDb()->query($query)) { |
|
2406 | if ($row = $this->_config->getDb()->fetchObject($result)) { |
|
2407 | $question = array( |
|
2408 | 'id' => $row->id, |
|
2409 | 'lang' => $row->lang, |
|
2410 | 'username' => $row->username, |
|
2411 | 'email' => $row->email, |
|
2412 | 'category_id' => $row->category_id, |
|
2413 | 'question' => $row->question, |
|
2414 | 'created' => $row->created, |
|
2415 | 'is_visible' => $row->is_visible, ); |
|
2416 | } |
|
2417 | } |
|
2418 | ||
2419 | return $question; |
|
2420 | } |
|
@@ 2449-2463 (lines=15) @@ | ||
2446 | ($all == false ? " AND is_visible = 'Y'" : '') |
|
2447 | ); |
|
2448 | ||
2449 | if ($result = $this->_config->getDb()->query($query)) { |
|
2450 | while ($row = $this->_config->getDb()->fetchObject($result)) { |
|
2451 | $questions[] = array( |
|
2452 | 'id' => $row->id, |
|
2453 | 'lang' => $row->lang, |
|
2454 | 'username' => $row->username, |
|
2455 | 'email' => $row->email, |
|
2456 | 'category_id' => $row->category_id, |
|
2457 | 'question' => $row->question, |
|
2458 | 'created' => $row->created, |
|
2459 | 'answer_id' => $row->answer_id, |
|
2460 | 'is_visible' => $row->is_visible, |
|
2461 | ); |
|
2462 | } |
|
2463 | } |
|
2464 | ||
2465 | return $questions; |
|
2466 | } |