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;
   }
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;
   }
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 ; }
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.
Modifies standard Gdn_Model - > Get to use AcitivityQuery .