public function getCompetitionDatatable()
    {
        $dataTable = new DataTable();

        $row1 = new Row();
        $row1->setColumns(array('name' => 'piwik', 'license' => 'GPL'));

        // Rows Metadata is useful to store non stats data for example (logos, urls, etc.)
        // When printed out, they are simply merged with columns
        $row1->setMetadata('logo', 'logo.png');
        $dataTable->addRow($row1);

        $dataTable->addRowFromSimpleArray(array('name' => 'google analytics', 'license' => 'commercial'));

        return $dataTable;
    }
public function getCompetitionDatatable()
    {
        $dataTable = new DataTable();

        $row1 = new Row();
        $row1->setColumns(array('name' => 'piwik', 'license' => 'GPL'));

        // Rows Metadata is useful to store non stats data for example (logos, urls, etc.)
        // When printed out, they are simply merged with columns
        $row1->setMetadata('logo', 'logo.png');
        $dataTable->addRow($row1);

        $dataTable->addRowFromSimpleArray(array('name' => 'google analytics', 'license' => 'commercial'));

        return $dataTable;
    }
public function getCompetitionDatatable ( ) { $ dataTable = new DataTable ( ) ; $ row1 = new Row ( ) ; $ row1 -> setColumns ( array ( 'name' => 'piwik' , 'license' => 'GPL' ) ) ; // Rows Metadata is useful to store non stats data for example (logos, urls, etc.) // When printed out, they are simply merged with columns $ row1 -> setMetadata ( 'logo' , 'logo.png' ) ; $ dataTable -> addRow ( $ row1 ) ; $ dataTable -> addRowFromSimpleArray ( array ( 'name' => 'google analytics' , 'license' => 'commercial' ) ) ; return $ dataTable ; }
Returns a custom data table.
This data table will be converted to all available formats
when requested in the API request.

@return DataTable
Returns a custom data table . This data table will be converted to all available formats when requested in the API request .