original_string: public function GetNotificationsSince($UserID, $LastActivityID, $FilterToActivityTypeIDs = '', $Limit = '5') {
        $this->ActivityQuery();
        $this->FireEvent('BeforeGetNotificationsSince');
  		if (is_array($FilterToActivityTypeIDs))
  			$this->SQL->WhereIn('a.ActivityTypeID', $FilterToActivityTypeIDs);
        else
           $this->SQL->Where('t.Notify', '1');
  		
        $Result = $this->SQL
           ->Where('RegardingUserID', $UserID)
           ->Where('a.ActivityID >', $LastActivityID)
           ->Limit($Limit, 0)
           ->OrderBy('a.ActivityID', 'desc')
           ->Get();
  
        return $Result;
     }
code: public function GetNotificationsSince($UserID, $LastActivityID, $FilterToActivityTypeIDs = '', $Limit = '5') {
        $this->ActivityQuery();
        $this->FireEvent('BeforeGetNotificationsSince');
  		if (is_array($FilterToActivityTypeIDs))
  			$this->SQL->WhereIn('a.ActivityTypeID', $FilterToActivityTypeIDs);
        else
           $this->SQL->Where('t.Notify', '1');
  		
        $Result = $this->SQL
           ->Where('RegardingUserID', $UserID)
           ->Where('a.ActivityID >', $LastActivityID)
           ->Limit($Limit, 0)
           ->OrderBy('a.ActivityID', 'desc')
           ->Get();
  
        return $Result;
     }
code_tokens: public function GetNotificationsSince ( $ UserID , $ LastActivityID , $ FilterToActivityTypeIDs = '' , $ Limit = '5' ) { $ this -> ActivityQuery ( ) ; $ this -> FireEvent ( 'BeforeGetNotificationsSince' ) ; if ( is_array ( $ FilterToActivityTypeIDs ) ) $ this -> SQL -> WhereIn ( 'a.ActivityTypeID' , $ FilterToActivityTypeIDs ) ; else $ this -> SQL -> Where ( 't.Notify' , '1' ) ; $ Result = $ this -> SQL -> Where ( 'RegardingUserID' , $ UserID ) -> Where ( 'a.ActivityID >' , $ LastActivityID ) -> Limit ( $ Limit , 0 ) -> OrderBy ( 'a.ActivityID' , 'desc' ) -> Get ( ) ; return $ Result ; }
docstring: Get notifications for a user since designated ActivityID.
  
  Events: BeforeGetNotificationsSince.
  
  @since 2.0.18
  @access public
  @param int $UserID Unique ID of user.
  @param int $LastActivityID ID of activity to start at.
  @param array $FilterToActivityTypeIDs Limits returned activity to particular types.
  @param int $Limit Max number to return.
  @return DataSet SQL results.
docstring_tokens: Get notifications for a user since designated ActivityID .