Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Quarantine getUserHistory

From Catglobe Wiki


Quarantine_getUserHistory

Return an array containing all quarantines were in specified user's quarantine history (State All of quarantine history tab).

An array which contains UserQuarantine objects. for infomation click here;

Syntax

Quarantine_getUserHistory(userRId);

Arguments

userRId: Is a number expression. It is the user's resource id.

Return type

Array

Examples

number userRId= 15498958;
array quarantineList = Quarantine_getUserHistory(userRId);
 for(number j=0;j< quarantineList.Count;j++) 
 {
 print(quarantineList [j].AddedByUserId);
 print(quarantineList [j].Comment);
 print(quarantineList [j].From);
 print(quarantineList [j].ObjectTypeName);
 print(quarantineList [j].OriginalTo);
 print(quarantineList [j].QuarantineResourceId);
 print(quarantineList [j].RemovedByUserId);
 print(quarantineList [j].To);
 print("==============================");
 }
//Result
1
quarantine for test
2016-05-20 04:49:57
UserQuarantine
2016-05-21 04:49:57
41
0
2016-05-21 04:49:57
==============================
1
After send Sendmailtest
2016-05-19 11:42:33
UserQuarantine
2016-05-20 11:42:33
41
0
2016-05-20 11:42:33
==============================