original_string: protected function preparePaging(Request $request)
      {
          self::$countBeforePaging = $this->query->count();
          $this->query->limit($request->getLength());
          $this->query->offset($request->getStart());
      }
code: protected function preparePaging(Request $request)
      {
          self::$countBeforePaging = $this->query->count();
          $this->query->limit($request->getLength());
          $this->query->offset($request->getStart());
      }
code_tokens: protected function preparePaging ( Request $ request ) { self :: $ countBeforePaging = $ this -> query -> count ( ) ; $ this -> query -> limit ( $ request -> getLength ( ) ) ; $ this -> query -> offset ( $ request -> getStart ( ) ) ; }
docstring: Prepare CakePHP paging
  
  @param Request $request DataTable request
docstring_tokens: Prepare CakePHP paging