[ * 'description' => tooltip, * 'label' => label to display, * 'class' => cell CSS class, * 'metadata' => [key => value] transformed into data-key="value" * ] */ private $aColumns; /** * @var array of [ * '@class' => css class of the row, * 'entry name' => [ * 'value_html' => value to display in the cell, * 'value_raw' => real value put into data-value-raw * ], ... * ] */ private $aData; public function __construct(string $sId = null, string $sContainerCSSClass = '') { parent::__construct($sId, $sContainerCSSClass); $this->aColumns = []; $this->aData = []; } /** * @return array */ public function GetColumns(): array { return $this->aColumns; } /** * @param array $aColumns */ public function SetColumns(array $aColumns): void { $this->aColumns = $aColumns; } /** * @return array */ public function GetData(): array { return $this->aData; } /** * @param array $aData */ public function SetData(array $aData): void { $this->aData = $aData; } }