function initWithId($id = 0) { $this->id = (int) $id; $dao =& PHPWikiAttachment::getDao(); $dar =& $dao->read($this->id); $this->setFromRow($dar->getRow()); }