public function on_update() { parent::on_update(); $db = DB::getInstance(); $oRef = new ReflectionClass($this->getSpiderClassName()); $oSpider = $oRef->newInstance(array()); $table = $oSpider->table['table']; $rs = Identifiable::getItemById($this->spiderID, $table); $oSpider = $oRef->newInstance($rs); $oSpider->description = strip_tags($this->description); $oSpider->name = $this->name; $oSpider->save(); }