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

Resource getJournal: Difference between revisions

From Catglobe Wiki
Tungocman (talk | contribs)
No edit summary
Tungocman (talk | contribs)
No edit summary
Line 3: Line 3:
Get journal information of a specific resource.  
Get journal information of a specific resource.  


<br>


=== Syntax  ===
=== Syntax  ===


Resource_getJournal(ResourceID)
Resource_getJournal(ResourceID)  


<br>


=== Arguments  ===
=== Arguments  ===


ResourceID: is a number. It is the resource id of resource
ResourceID: is a number. It is the resource id of resource  


<br>


=== Return type  ===
=== Return type  ===


An array of [[ResourceJournalEntry_class|ResourceJournalEntry object]].
An array of [[ResourceJournalEntry class|ResourceJournalEntry objects]].  
 


<br>


=== Examples  ===
=== Examples  ===


 
<source lang="javascript">array journal=Resource_getJournal(37257114);
for(number i=0; i&lt;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
:print("\n");
}</source>


__NOTOC__  
__NOTOC__  


[[Category:Resource_Functions]]
[[Category:Resource_Functions]]

Revision as of 10:44, 11 November 2011

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.


Examples

array journal=Resource_getJournal(37257114); 
for(number i=0; i&lt;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
:print("\n"); 
}