|
|
Line 2: |
Line 2: |
|
| |
|
| Get journal information of a specific resource. | | Get journal information of a specific resource. |
| | |
|
| |
|
| === Syntax === | | === Syntax === |
|
| |
|
| Resource_getJournal(ResourceID) <br> | | Resource_getJournal(ResourceID) |
| | |
|
| |
|
| === Arguments === | | === Arguments === |
|
| |
|
| ResourceID: is a number. It is the resource id of resource<br> | | ResourceID: is a number. It is the resource id of resource |
| | |
|
| |
|
| === Return type === | | === Return type === |
|
| |
|
| An array of ResourceJournalEntry objects. | | An array of [[ResourceJournalEntry_class|ResourceJournalEntry object]]. |
|
| |
|
| See [http://wiki.catglobe.com/index.php/ResourceJournalEntry_class [ResourceJournalEntry]] for more information.
| |
|
| |
|
| <br>
| |
|
| |
|
| === Examples === | | === Examples === |
|
| |
|
| array journal=Resource_getJournal(37257114);
| |
|
| |
| for(number i=0; i<arrayCount(journal); i++)
| |
|
| |
| {
| |
|
| |
| print(journal[i].CommentType); <br>
| |
|
| |
| print(journal[i].Content);
| |
|
| |
| print(journal[i].CreatedByUserResourceId);
| |
|
| |
| print(journal[i].CreatedDate);
| |
|
| |
| print(journal[i].ModifiedByUserResourceId);
| |
|
| |
| print(journal[i].ModifiedDate);
| |
|
| |
| print(journal[i].ObjectTypeName);
| |
|
| |
| print(journal[i].TypeInformation);
| |
|
| |
| print("\n");
| |
|
| |
| }
| |
|
| |
| Result is:
| |
|
| |
| Description <br>
| |
|
| |
| phong questionnaire 2 // Content
| |
|
| |
| 25455 // Create By User Resource Id
| |
|
| |
| 2011-08-08 04:24:55 // create date
| |
|
| |
| 25455 // Create By User Resource Id
| |
|
| |
| 2011-08-08 04:25:54 // ModifiedDate
| |
|
| |
| ResourceJournalEntry // Object Type Name
| |
|
| |
|
| TypeInformation // TypeInformation
| |
|
| |
|
| __NOTOC__ | | __NOTOC__ |
|
| |
|
| [[Category:Resource_Functions]] | | [[Category:Resource_Functions]] |
Resource_getJournal
Get journal information of a specific resource.
Syntax
Resource_getJournal(ResourceID)
Arguments
ResourceID: is a number. It is the resource id of resource
Return type
An array of ResourceJournalEntry object.
Examples