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>"; |
} |
} |