public setMetadata ( string $name, mixed $value ) | ||
$name | string | name of the metadata to set. |
$value | mixed | value of the metadata to set. |
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); }