public function addData(Gpf_Data_Row $record) { $this->lastRecord = $this->data->createRecord(); $this->lastRecord->set(self::WIDGET_ID, $this->id++ . ""); foreach ($this->lastRecord as $name => $value) { if ($name == self::WIDGET_ID) { continue; } if ($this->lastRecord->contains($name)) { $this->lastRecord->set($name, $record->get($name) . ""); } } $this->data->addRecord($this->lastRecord); }