Difference between revisions of "Resource getJournal"
(→Examples) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{HelpFiles}} | ||
= Resource_getJournal = | = Resource_getJournal = | ||
Line 19: | Line 20: | ||
=== Return type === | === Return type === | ||
− | An array of [[ResourceJournalEntry class|ResourceJournalEntry objects]]. | + | An array of [[ResourceJournalEntry class|ResourceJournalEntry objects]]. |
+ | Also see [[Resource_addJournal|Resource_addJournal]] for more information about ResourceJournalEntry object. | ||
− | <br> | + | <br> |
=== Examples === | === Examples === | ||
<source lang="javascript">array journal=Resource_getJournal(37257114); | <source lang="javascript">array journal=Resource_getJournal(37257114); | ||
− | for(number i=0; i | + | for(number i=0; i<arrayCount(journal); i++) |
{ | { | ||
− | + | print(journal[i].CommentType); // Description | |
− | + | print(journal[i].Content); // phong questionnaire 2 | |
− | + | print(journal[i].CreatedByUserResourceId); //25455 | |
− | + | print(journal[i].CreatedDate); // 2011-08-08 04:24:55 | |
− | + | print(journal[i].ModifiedByUserResourceId); // 36459 | |
− | + | print(journal[i].ModifiedDate); // 2011-08-08 04:25:54 | |
− | + | print(journal[i].ObjectTypeName); // ResourceJournalEntry | |
− | + | print(journal[i].TypeInformation); // TypeInformation | |
− | + | }</source> | |
− | }</source> | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Resource_Functions]] | [[Category:Resource_Functions]] |
Latest revision as of 04:50, 11 September 2012
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 objects. Also see Resource_addJournal for more information about ResourceJournalEntry object.
Examples
array journal=Resource_getJournal(37257114);
for(number i=0; i<arrayCount(journal); i++)
{
print(journal[i].CommentType); // Description
print(journal[i].Content); // phong questionnaire 2
print(journal[i].CreatedByUserResourceId); //25455
print(journal[i].CreatedDate); // 2011-08-08 04:24:55
print(journal[i].ModifiedByUserResourceId); // 36459
print(journal[i].ModifiedDate); // 2011-08-08 04:25:54
print(journal[i].ObjectTypeName); // ResourceJournalEntry
print(journal[i].TypeInformation); // TypeInformation
}