public function setMetadata($name, $value) { $this->metadata[$name] = $value; }
private function addRowWithMetadata($metadata) { $row = new Row(array(Row::COLUMNS => array('label' => 'val1'))); foreach ($metadata as $name => $value) { $row->setMetadata($name, $value); } $this->table->addRow($row); }