protected function renderTable($table, &$allColumns = array())
    {
        if (is_array($table)) {
            // convert array to DataTable
            $table = DataTable::makeFromSimpleArray($table);
        }

        if ($table instanceof DataTable\Map) {
            $str = $this->renderDataTableMap($table, $allColumns);
        } else {
            $str = $this->renderDataTable($table, $allColumns);
        }
        return $str;
    }
protected function renderTable($table, &$allColumns = array())
    {
        if (is_array($table)) {
            // convert array to DataTable
            $table = DataTable::makeFromSimpleArray($table);
        }

        if ($table instanceof DataTable\Map) {
            $str = $this->renderDataTableMap($table, $allColumns);
        } else {
            $str = $this->renderDataTable($table, $allColumns);
        }
        return $str;
    }
protected function renderTable ( $ table , & $ allColumns = array ( ) ) { if ( is_array ( $ table ) ) { // convert array to DataTable $ table = DataTable :: makeFromSimpleArray ( $ table ) ; } if ( $ table instanceof DataTable \ Map ) { $ str = $ this -> renderDataTableMap ( $ table , $ allColumns ) ; } else { $ str = $ this -> renderDataTable ( $ table , $ allColumns ) ; } return $ str ; }
Computes the output of the given data table

@param DataTable|array $table
@param array $allColumns
@return string
Computes the output of the given data table