original_string: protected function get_from_db(
          $userid,
          $whereconditions,
          $whereparams,
          $ordersql,
          $offset,
          $limitnum
      ) {
          return array_values(
              $this->retrievalstrategy->get_raw_events(
                  [$userid],
                  null,
                  null,
                  null,
                  $whereconditions,
                  $whereparams,
                  $ordersql,
                  $offset,
                  $limitnum
              )
          );
      }
code: protected function get_from_db(
          $userid,
          $whereconditions,
          $whereparams,
          $ordersql,
          $offset,
          $limitnum
      ) {
          return array_values(
              $this->retrievalstrategy->get_raw_events(
                  [$userid],
                  null,
                  null,
                  null,
                  $whereconditions,
                  $whereparams,
                  $ordersql,
                  $offset,
                  $limitnum
              )
          );
      }
code_tokens: protected function get_from_db ( $ userid , $ whereconditions , $ whereparams , $ ordersql , $ offset , $ limitnum ) { return array_values ( $ this -> retrievalstrategy -> get_raw_events ( [ $ userid ] , null , null , null , $ whereconditions , $ whereparams , $ ordersql , $ offset , $ limitnum ) ) ; }
docstring: Fetches records from DB.
  
  @param int    $userid
  @param string $whereconditions
  @param array  $whereparams
  @param string $ordersql
  @param int    $offset
  @param int    $limitnum
  @return array
docstring_tokens: Fetches records from DB .