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
            )
        );
    }
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
            )
        );
    }
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 ) ) ; }
Fetches records from DB.

@param int    $userid
@param string $whereconditions
@param array  $whereparams
@param string $ordersql
@param int    $offset
@param int    $limitnum
@return array
Fetches records from DB .