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

version 1.1, 2010/04/24 21:45:50 version 1.2, 2010/05/23 09:31:39
Line 3  require_once dirname(__FILE__).'/DbEdito Line 3  require_once dirname(__FILE__).'/DbEdito
   
 class DbEditors {  class DbEditors {
     private $db;      private $db;
       private $years;
     public function __construct() {      public function __construct() {
         $this->db = new DbDatabase();          $this->db = new DbDatabase();
     }      }
     public function getAllHtml() {      private function loadPeople() {
         $output = '';         $this->people = array();
         $res = $this->db->getAllEditorsRes();          $res = $this->db->getAllEditorsRes();
         while ($line = db_fetch_object($res)) {          while ($line = db_fetch_object($res)) {
             $this->people[] = DbEditor::newFromRow($line);              $this->people[] = DbEditor::newFromRow($line);
         }          }
       }
   
   
       public function getAllHtml() {
           $output = '';
           $this->loadPeople();
         foreach ($this->people as $person) {          foreach ($this->people as $person) {
             $output.= "<p>".$person->getLink()."</p>";              $output.= "<p>".$person->getLink()."</p>";
         }          }

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


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