db = new DbDatabase(); } private function loadPeople() { $this->people = array(); $res = $this->db->getAllEditorsRes(); while ($line = db_fetch_object($res)) { $this->people[] = DbEditor::newFromRow($line); } } public function getAllHtml() { $output = ''; $this->loadPeople(); foreach ($this->people as $person) { $output.= "

".$person->getLink()."

"; } /* $ares = db_query("SELECT * FROM Tournaments LEFT JOIN P2T ON (P2T.Tour = Tournaments.Id) WHERE P2T.Author = '".$line->CharId."' ORDER BY PlayedAt DESC, Title LIMIT 5"); $output.=""; }*/ return $output; } }