Gpf_Data_Record::contains PHP Method

contains() public method

public contains ( $id )
        public function contains($id)
        {
            return $this->header->contains($id);
        }

Usage Example

Ejemplo n.º 1
0
 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);
 }