original_string: public function onApplySetup()
      {
          if (($visibleColumns = post('visible_columns')) && is_array($visibleColumns)) {
              $this->columnOverride = $visibleColumns;
              $this->putSession('visible', $this->columnOverride);
          }
  
          $this->recordsPerPage = post('records_per_page', $this->recordsPerPage);
          $this->putSession('order', post('column_order'));
          $this->putSession('per_page', $this->recordsPerPage);
          return $this->onRefresh();
      }
code: public function onApplySetup()
      {
          if (($visibleColumns = post('visible_columns')) && is_array($visibleColumns)) {
              $this->columnOverride = $visibleColumns;
              $this->putSession('visible', $this->columnOverride);
          }
  
          $this->recordsPerPage = post('records_per_page', $this->recordsPerPage);
          $this->putSession('order', post('column_order'));
          $this->putSession('per_page', $this->recordsPerPage);
          return $this->onRefresh();
      }
code_tokens: public function onApplySetup ( ) { if ( ( $ visibleColumns = post ( 'visible_columns' ) ) && is_array ( $ visibleColumns ) ) { $ this -> columnOverride = $ visibleColumns ; $ this -> putSession ( 'visible' , $ this -> columnOverride ) ; } $ this -> recordsPerPage = post ( 'records_per_page' , $ this -> recordsPerPage ) ; $ this -> putSession ( 'order' , post ( 'column_order' ) ) ; $ this -> putSession ( 'per_page' , $ this -> recordsPerPage ) ; return $ this -> onRefresh ( ) ; }
docstring: Event handler to apply the list set up.
docstring_tokens: Event handler to apply the list set up .