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;
   }
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;
   }
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 ; }
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.
Get notifications for a user since designated ActivityID .