public function setHeader($header) { if ($header instanceof Gpf_Data_RecordHeader) { $this->_header = $header; return; } $this->_header = new Gpf_Data_RecordHeader($header); }
public function __construct($name, array $dataHeader) { $this->id = 0; $this->name = $name; $this->data = new Gpf_Data_RecordSet(); $this->data->setHeader(array_merge(array(self::WIDGET_ID), $dataHeader)); }