original_string: public function GetNotifications($NotifyUserID, $Offset = '0', $Limit = '30') {
        $this->ActivityQuery(FALSE);
        $this->FireEvent('BeforeGetNotifications');
        $Result = $this->SQL
           ->Where('NotifyUserID', $NotifyUserID)
           ->Limit($Limit, $Offset)
           ->OrderBy('a.ActivityID', 'desc')
           ->Get();
        $Result->DatasetType(DATASET_TYPE_ARRAY);
        
        self::GetUsers($Result->ResultArray());
        Gdn::UserModel()->JoinUsers($Result->ResultArray(), array('ActivityUserID', 'RegardingUserID'), array('Join' => array('Name', 'Photo', 'Email', 'Gender')));
        $this->CalculateData($Result->ResultArray());
        
        return $Result;
     }
code: public function GetNotifications($NotifyUserID, $Offset = '0', $Limit = '30') {
        $this->ActivityQuery(FALSE);
        $this->FireEvent('BeforeGetNotifications');
        $Result = $this->SQL
           ->Where('NotifyUserID', $NotifyUserID)
           ->Limit($Limit, $Offset)
           ->OrderBy('a.ActivityID', 'desc')
           ->Get();
        $Result->DatasetType(DATASET_TYPE_ARRAY);
        
        self::GetUsers($Result->ResultArray());
        Gdn::UserModel()->JoinUsers($Result->ResultArray(), array('ActivityUserID', 'RegardingUserID'), array('Join' => array('Name', 'Photo', 'Email', 'Gender')));
        $this->CalculateData($Result->ResultArray());
        
        return $Result;
     }
code_tokens: public function GetNotifications ( $ NotifyUserID , $ Offset = '0' , $ Limit = '30' ) { $ this -> ActivityQuery ( FALSE ) ; $ this -> FireEvent ( 'BeforeGetNotifications' ) ; $ Result = $ this -> SQL -> Where ( 'NotifyUserID' , $ NotifyUserID ) -> Limit ( $ Limit , $ Offset ) -> OrderBy ( 'a.ActivityID' , 'desc' ) -> Get ( ) ; $ Result -> DatasetType ( DATASET_TYPE_ARRAY ) ; self :: GetUsers ( $ Result -> ResultArray ( ) ) ; Gdn :: UserModel ( ) -> JoinUsers ( $ Result -> ResultArray ( ) , array ( 'ActivityUserID' , 'RegardingUserID' ) , array ( 'Join' => array ( 'Name' , 'Photo' , 'Email' , 'Gender' ) ) ) ; $ this -> CalculateData ( $ Result -> ResultArray ( ) ) ; return $ Result ; }
docstring: Get notifications for a user.
  
  Events: BeforeGetNotifications.
  
  @since 2.0.0
  @access public
  @param int $NotifyUserID Unique ID of user.
  @param int $Offset Number to skip.
  @param int $Limit Max number to return.
  @return DataSet SQL results.
docstring_tokens: Get notifications for a user .