applications/dashboard/models/class.rolemodel.php
public function GetByUserID($UserID) {
      return $this->SQL->Select()
         ->From('Role')
         ->Join('UserRole', 'Role.RoleID = UserRole.RoleID')
         ->Where('UserRole.UserID', $UserID)
         ->Get();
   }
public function GetByUserID($UserID) {
      return $this->SQL->Select()
         ->From('Role')
         ->Join('UserRole', 'Role.RoleID = UserRole.RoleID')
         ->Where('UserRole.UserID', $UserID)
         ->Get();
   }
public function GetByUserID ( $ UserID ) { return $ this -> SQL -> Select ( ) -> From ( 'Role' ) -> Join ( 'UserRole' , 'Role.RoleID = UserRole.RoleID' ) -> Where ( 'UserRole.UserID' , $ UserID ) -> Get ( ) ; }
Returns a resultset of role data related to the specified UserID.

@param int The UserID to filter to.
@return Gdn_DataSet
Returns a resultset of role data related to the specified UserID .