public function getDataTable($resultIndices)
    {
        $dataTableFactory = new DataTableFactory(
            $this->dataNames, $this->dataType, $this->sitesId, $this->periods, $this->defaultRow);

        $index = $this->getIndexedArray($resultIndices);

        return $dataTableFactory->make($index, $resultIndices);
    }
public function getDataTable($resultIndices)
    {
        $dataTableFactory = new DataTableFactory(
            $this->dataNames, $this->dataType, $this->sitesId, $this->periods, $this->defaultRow);

        $index = $this->getIndexedArray($resultIndices);

        return $dataTableFactory->make($index, $resultIndices);
    }
public function getDataTable ( $ resultIndices ) { $ dataTableFactory = new DataTableFactory ( $ this -> dataNames , $ this -> dataType , $ this -> sitesId , $ this -> periods , $ this -> defaultRow ) ; $ index = $ this -> getIndexedArray ( $ resultIndices ) ; return $ dataTableFactory -> make ( $ index , $ resultIndices ) ; }
Returns archive data as a DataTable indexed by metadata. Indexed data will
be represented by Map instances.

@param array $resultIndices An array mapping metadata names to pretty labels
for them. Each archive data row will be indexed
by the metadata specified here.

Eg, array('site' => 'idSite', 'period' => 'Date')
@return DataTable|DataTable\Map
Returns archive data as a DataTable indexed by metadata . Indexed data will be represented by Map instances .