Exemplo n.º 1
0
 public function source()
 {
     $result = Source::make()->type(Source::SOURCE_SQL)->length(\Input::get('length') ? \Input::get('length') : $this->display_length)->start(\Input::get('start') ? \Input::get('start') : $this->display_start)->search(\Input::get('search') ? \Input::get('search') : '')->order(\Input::get('order') ? \Input::get('order') : '')->rowssql($this->rows_source_sql)->countsql($this->count_filtered_records_sql)->totalsql($this->count_total_records_sql)->fields(explode(',', $this->fields['fields']))->searchables(explode(',', $this->fields['searchables']))->orderables($this->fields['orderables'])->cells($this->cells())->custom_filters($this->filters);
     if (\Input::get('columns')) {
         $result->columns(\Input::get('columns'));
     }
     return $result;
 }