public function GetComments($ActivityIDs) {
      $Result = $this->SQL
         ->Select('c.*')
         ->From('ActivityComment c')
         ->WhereIn('c.ActivityID', $ActivityIDs)
         ->OrderBy('c.ActivityID, c.DateInserted')
         ->Get()->ResultArray();
      Gdn::UserModel()->JoinUsers($Result, array('InsertUserID'), array('Join' => array('Name', 'Photo', 'Email')));
      return $Result;
   }
public function GetComments($ActivityIDs) {
      $Result = $this->SQL
         ->Select('c.*')
         ->From('ActivityComment c')
         ->WhereIn('c.ActivityID', $ActivityIDs)
         ->OrderBy('c.ActivityID, c.DateInserted')
         ->Get()->ResultArray();
      Gdn::UserModel()->JoinUsers($Result, array('InsertUserID'), array('Join' => array('Name', 'Photo', 'Email')));
      return $Result;
   }
public function GetComments ( $ ActivityIDs ) { $ Result = $ this -> SQL -> Select ( 'c.*' ) -> From ( 'ActivityComment c' ) -> WhereIn ( 'c.ActivityID' , $ ActivityIDs ) -> OrderBy ( 'c.ActivityID, c.DateInserted' ) -> Get ( ) -> ResultArray ( ) ; Gdn :: UserModel ( ) -> JoinUsers ( $ Result , array ( 'InsertUserID' ) , array ( 'Join' => array ( 'Name' , 'Photo' , 'Email' ) ) ) ; return $ Result ; }
Get comments related to designated activity items.

Events: BeforeGetComments.

@since 2.0.0
@access public
@param array $ActivityIDs IDs of activity items.
@return DataSet SQL results.
Get comments related to designated activity items .