UserID = 0; $this->Username = ''; $this->FullName = ''; $this->RoleID = 0; $this->Role = ''; $this->RoleDescription = ''; $this->RoleIcon = ''; $this->AdminUserID = 0; $this->AdminUsername = ''; $this->AdminFullName = ''; $this->Notes = ''; $this->Date = ''; } function FormatPropertiesForDisplay(&$Context) { $this->Username = FormatStringForDisplay($this->Username, 0); $this->FullName = FormatStringForDisplay($this->FullName, 0); $this->AdminUsername = FormatStringForDisplay($this->AdminUsername, 0); $this->AdminFullName = FormatStringForDisplay($this->AdminFullName, 0); $AdminUser = $Context->ObjectFactory->NewContextObject($Context, 'Comment'); $AdminUser->Clear(); $AdminUser->AuthUsername = $this->AdminUsername; $AdminUser->AuthUserID = $this->AdminUserID; $this->Notes = $Context->FormatString($this->Notes, $AdminUser, 'Text', FORMAT_STRING_FOR_DISPLAY); } function GetPropertiesFromDataSet($DataSet) { $this->UserID = ForceInt(@$DataSet['UserID'],0); $this->Username = ForceString(@$DataSet['Username'],''); $this->FullName = ForceString(@$DataSet['FullName'],''); $this->RoleID = ForceInt(@$DataSet['RoleID'],0); $this->Role = ForceString(@$DataSet['Role'],''); $this->RoleDescription = ForceString(@$DataSet['RoleDescription'],''); $this->RoleIcon = ForceString(@$DataSet['RoleIcon'],''); $this->AdminUserID = ForceInt(@$DataSet['AdminUserID'],0); $this->AdminUsername = ForceString(@$DataSet['AdminUsername'],''); $this->AdminFullName =ForceString(@$DataSet['AdminFullName'],''); $this->Notes = ForceString(@$DataSet['Notes'],''); $this->Date = UnixTimestamp(@$DataSet['Date']); } function GetPropertiesFromForm() { $this->UserID = ForceIncomingInt('u', 0); $this->RoleID = ForceIncomingInt('RoleID', 0); $this->Notes = ForceIncomingString('Notes', ''); } } ?>