protected function getRecords()
    {
        $records = null;
        $model = $this->controller->reorderGetModel();
        $query = $model->newQuery();

        $this->controller->reorderExtendQuery($query);

        if ($this->sortMode == 'simple') {
            $records = $query
                ->orderBy($model->getSortOrderColumn())
                ->get()
            ;
        }
        elseif ($this->sortMode == 'nested') {
            $records = $query->getNested();
        }

        return $records;
    }
protected function getRecords()
    {
        $records = null;
        $model = $this->controller->reorderGetModel();
        $query = $model->newQuery();

        $this->controller->reorderExtendQuery($query);

        if ($this->sortMode == 'simple') {
            $records = $query
                ->orderBy($model->getSortOrderColumn())
                ->get()
            ;
        }
        elseif ($this->sortMode == 'nested') {
            $records = $query->getNested();
        }

        return $records;
    }
protected function getRecords ( ) { $ records = null ; $ model = $ this -> controller -> reorderGetModel ( ) ; $ query = $ model -> newQuery ( ) ; $ this -> controller -> reorderExtendQuery ( $ query ) ; if ( $ this -> sortMode == 'simple' ) { $ records = $ query -> orderBy ( $ model -> getSortOrderColumn ( ) ) -> get ( ) ; } elseif ( $ this -> sortMode == 'nested' ) { $ records = $ query -> getNested ( ) ; } return $ records ; }
Returns all the records from the supplied model.
@return Collection
Returns all the records from the supplied model .