original_string: public function Get($NotifyUserID = FALSE, $Offset = 0, $Limit = 30) {
        $Offset = is_numeric($Offset) ? $Offset : 0;
        if ($Offset < 0)
           $Offset = 0;
  
        $Limit = is_numeric($Limit) ? $Limit : 0;
        if ($Limit < 0)
           $Limit = 30;
  
        $this->ActivityQuery(FALSE);
        
        if (!$NotifyUserID) {
           $NotifyUserID = self::NOTIFY_PUBLIC;
        }
        $this->SQL->WhereIn('NotifyUserID', (array)$NotifyUserID);
  
        $this->FireEvent('BeforeGet');
        $Result = $this->SQL
           ->OrderBy('a.ActivityID', 'desc')
           ->Limit($Limit, $Offset)
           ->Get();
        
        Gdn::UserModel()->JoinUsers($Result, array('ActivityUserID', 'RegardingUserID'), array('Join' => array('Name', 'Photo', 'Email', 'Gender')));
  
        $this->EventArguments['Data'] =& $Result;
        $this->FireEvent('AfterGet');
        
        return $Result;
     }
code: public function Get($NotifyUserID = FALSE, $Offset = 0, $Limit = 30) {
        $Offset = is_numeric($Offset) ? $Offset : 0;
        if ($Offset < 0)
           $Offset = 0;
  
        $Limit = is_numeric($Limit) ? $Limit : 0;
        if ($Limit < 0)
           $Limit = 30;
  
        $this->ActivityQuery(FALSE);
        
        if (!$NotifyUserID) {
           $NotifyUserID = self::NOTIFY_PUBLIC;
        }
        $this->SQL->WhereIn('NotifyUserID', (array)$NotifyUserID);
  
        $this->FireEvent('BeforeGet');
        $Result = $this->SQL
           ->OrderBy('a.ActivityID', 'desc')
           ->Limit($Limit, $Offset)
           ->Get();
        
        Gdn::UserModel()->JoinUsers($Result, array('ActivityUserID', 'RegardingUserID'), array('Join' => array('Name', 'Photo', 'Email', 'Gender')));
  
        $this->EventArguments['Data'] =& $Result;
        $this->FireEvent('AfterGet');
        
        return $Result;
     }
code_tokens: public function Get ( $ NotifyUserID = FALSE , $ Offset = 0 , $ Limit = 30 ) { $ Offset = is_numeric ( $ Offset ) ? $ Offset : 0 ; if ( $ Offset < 0 ) $ Offset = 0 ; $ Limit = is_numeric ( $ Limit ) ? $ Limit : 0 ; if ( $ Limit < 0 ) $ Limit = 30 ; $ this -> ActivityQuery ( FALSE ) ; if ( ! $ NotifyUserID ) { $ NotifyUserID = self :: NOTIFY_PUBLIC ; } $ this -> SQL -> WhereIn ( 'NotifyUserID' , ( array ) $ NotifyUserID ) ; $ this -> FireEvent ( 'BeforeGet' ) ; $ Result = $ this -> SQL -> OrderBy ( 'a.ActivityID' , 'desc' ) -> Limit ( $ Limit , $ Offset ) -> Get ( ) ; Gdn :: UserModel ( ) -> JoinUsers ( $ Result , array ( 'ActivityUserID' , 'RegardingUserID' ) , array ( 'Join' => array ( 'Name' , 'Photo' , 'Email' , 'Gender' ) ) ) ; $ this -> EventArguments [ 'Data' ] = & $ Result ; $ this -> FireEvent ( 'AfterGet' ) ; return $ Result ; }
docstring: Modifies standard Gdn_Model->Get to use AcitivityQuery.
  
  Events: BeforeGet, AfterGet.
  
  @since 2.0.0
  @access public
  @param int $NotifyUserID Unique ID of user to gather activity for or one of the NOTIFY_* constants in this class.
  @param int $Offset Number to skip.
  @param int $Limit How many to return.
  @return DataSet SQL results.
docstring_tokens: Modifies standard Gdn_Model - > Get to use AcitivityQuery .