public function make()
    {
        $this->rawColumns = $this->getRawColumns($this->columns);
        $this->columnNames = $this->getColumnNames();

        $this->addSelect();

        $this->total = $this->count();

        if (static::$versionTransformer === null) {
            static::$versionTransformer = new Version110Transformer();
        }
        $this->addFilters();

        $this->filtered = $this->count();

        $this->addOrderBy();
        $this->addLimits();

        $this->rows = $this->builder->get();

        $rows = [];
        foreach ($this->rows as $row) {
            $rows[] = $this->formatRow($row);
        }

        return [
            static::$versionTransformer->transform('draw') => (isset($_POST[static::$versionTransformer->transform(
                    'draw'
                )]) ? (int)$_POST[static::$versionTransformer->transform('draw')] : 0),
            static::$versionTransformer->transform('recordsTotal') => $this->total,
            static::$versionTransformer->transform('recordsFiltered') => $this->filtered,
            static::$versionTransformer->transform('data') => $rows
        ];
    }
public function make()
    {
        $this->rawColumns = $this->getRawColumns($this->columns);
        $this->columnNames = $this->getColumnNames();

        $this->addSelect();

        $this->total = $this->count();

        if (static::$versionTransformer === null) {
            static::$versionTransformer = new Version110Transformer();
        }
        $this->addFilters();

        $this->filtered = $this->count();

        $this->addOrderBy();
        $this->addLimits();

        $this->rows = $this->builder->get();

        $rows = [];
        foreach ($this->rows as $row) {
            $rows[] = $this->formatRow($row);
        }

        return [
            static::$versionTransformer->transform('draw') => (isset($_POST[static::$versionTransformer->transform(
                    'draw'
                )]) ? (int)$_POST[static::$versionTransformer->transform('draw')] : 0),
            static::$versionTransformer->transform('recordsTotal') => $this->total,
            static::$versionTransformer->transform('recordsFiltered') => $this->filtered,
            static::$versionTransformer->transform('data') => $rows
        ];
    }
public function make ( ) { $ this -> rawColumns = $ this -> getRawColumns ( $ this -> columns ) ; $ this -> columnNames = $ this -> getColumnNames ( ) ; $ this -> addSelect ( ) ; $ this -> total = $ this -> count ( ) ; if ( static :: $ versionTransformer === null ) { static :: $ versionTransformer = new Version110Transformer ( ) ; } $ this -> addFilters ( ) ; $ this -> filtered = $ this -> count ( ) ; $ this -> addOrderBy ( ) ; $ this -> addLimits ( ) ; $ this -> rows = $ this -> builder -> get ( ) ; $ rows = [ ] ; foreach ( $ this -> rows as $ row ) { $ rows [ ] = $ this -> formatRow ( $ row ) ; } return [ static :: $ versionTransformer -> transform ( 'draw' ) => ( isset ( $ _POST [ static :: $ versionTransformer -> transform ( 'draw' ) ] ) ? ( int ) $ _POST [ static :: $ versionTransformer -> transform ( 'draw' ) ] : 0 ) , static :: $ versionTransformer -> transform ( 'recordsTotal' ) => $ this -> total , static :: $ versionTransformer -> transform ( 'recordsFiltered' ) => $ this -> filtered , static :: $ versionTransformer -> transform ( 'data' ) => $ rows ] ; }
Make the datatable response.
@return array
@throws Exception
Make the datatable response .