Annotation of db/prgsrc/drupal/modules/chgk_db/classes/DbPackage/DbPackageTour.class.php, revision 1.1
1.1 ! roma7 1: <?php
! 2: require_once(dirname(__FILE__)."/../DbQuestion.class.php");
! 3:
! 4: class DbPackageTour extends DbPackage {
! 5: public $questions;
! 6: public function getAll() {
! 7: $this->loadQuestions();
! 8: return $this;
! 9: }
! 10:
! 11: private function loadQuestions() {
! 12: $res = $this->db->getQuestionsRes($this->getDbId());
! 13: while ($row = $this->db->fetch_row($res)) {
! 14: $this->questions[$row->Number] = new DbQuestion($row);
! 15: }
! 16: }
! 17: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>