Diff for /db/prgsrc/drupal/modules/chgk_db/classes/DbPackage/DbPackageChamp.class.php between versions 1.1 and 1.2

version 1.1, 2010/02/28 20:17:35 version 1.2, 2010/03/08 16:19:22
Line 1 Line 1
 <?php  <?php
   
 class DbPackageChamp extends DbPackage {  class DbPackageChamp extends DbPackage {
     private $tours;
     
   protected function setId() {    protected function setId() {
     $this->id = str_replace('.txt', '', $this->tour->FileName);      $this->id = str_replace('.txt', '', $this->tour->FileName);
   }    }
     
     public function getAll() {
       $this->loadTours();
     }
     
     private function loadTours() {
       $res = $this->db->getToursRes($this->getDbId());
       while ($row = $this->db->fetch_row($res)) {
         $this->tours[$row->Number] = new DbPackageTour($row, $this);
         $this->tours[$row->Number] -> loadQuestions();
       }      
     }
     public function getPrintVersion() {
         $this->loadTours();
         $content = theme('chgk_db_champ_full', $this);
        return theme('chgk_db_print', $this->getTitle(), $content);
     }
     
     public function getTours() {
         return $this->tours;
     }
     public function isSingleTour() {
         return sizeof($this->tours)==1;
     }
 }  }

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>