setTime(time()); $entry->setType($type); $entry->setAutodiscoveryJob($this); $entry->setText($text); $entry->save(); return true; } public function setStatus($v) { parent::setStatus($v); // update the status time $this->setStatusChangeTime(time()); } public function clearLog() { $c = new Criteria(); $c->add(AutodiscoveryLogEntryPeer::JOB, $this->getId()); AutodiscoveryLogEntryPeer::doDelete($c); } public function addError($text) { $this->addLogEntry($text, AutodiscoveryLogEntry::TYPE_ERROR); } public function addWarning($text) { $this->addLogEntry($text, AutodiscoveryLogEntry::TYPE_WARNING); } public function addNotice($text) { $this->addLogEntry($text, AutodiscoveryLogEntry::TYPE_NOTICE); } } // AutodiscoveryJob