original_string: public function query_db($pagesize, $useinitialsbar = true) {
          $total = count($this->model->get_logs());
          $this->pagesize($pagesize, $total);
          $this->rawdata = $this->model->get_logs($this->get_page_start(), $this->get_page_size());
  
          // Set initial bars.
          if ($useinitialsbar) {
              $this->initialbars($total > $pagesize);
          }
      }
code: public function query_db($pagesize, $useinitialsbar = true) {
          $total = count($this->model->get_logs());
          $this->pagesize($pagesize, $total);
          $this->rawdata = $this->model->get_logs($this->get_page_start(), $this->get_page_size());
  
          // Set initial bars.
          if ($useinitialsbar) {
              $this->initialbars($total > $pagesize);
          }
      }
code_tokens: public function query_db ( $ pagesize , $ useinitialsbar = true ) { $ total = count ( $ this -> model -> get_logs ( ) ) ; $ this -> pagesize ( $ pagesize , $ total ) ; $ this -> rawdata = $ this -> model -> get_logs ( $ this -> get_page_start ( ) , $ this -> get_page_size ( ) ) ; // Set initial bars. if ( $ useinitialsbar ) { $ this -> initialbars ( $ total > $ pagesize ) ; } }
docstring: Query the logs table. Store results in the object for use by build_table.
  
  @param int $pagesize size of page for paginated displayed table.
  @param bool $useinitialsbar do you want to use the initials bar.
docstring_tokens: Query the logs table . Store results in the object for use by build_table .