Toggle menu
875
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 getResourceProperties: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg_pham (talk | contribs)
No edit summary
Line 2: Line 2:
{{HelpFiles}}
{{HelpFiles}}


====Resource_getResourceProperties====
==Resource_getResourceProperties==


Get all properties' values of a resource
Get all properties' values of a resource

Revision as of 03:05, 26 December 2011



Resource_getResourceProperties

Get all properties' values of a resource

Syntax

Resource_getResourceProperties(resourceId)

Arguments

  • resourceId: is a number expression, it is the resource's unique id

Return value

An array of arrays, it is an array of property objects, which contains the following items

<tbody> </tbody>

Index

Data type

Value

RESOURCE_PROPERTY_TYPE

number

Type of the property, it has value among the predefined constants:

- RESOURCE_PROPERTY_TYPE_BOOLEAN

- RESOURCE_PROPERTY_TYPE_DATETIME

- RESOURCE_PROPERTY_TYPE_MULTI

- RESOURCE_PROPERTY_TYPE_NUMBER

- RESOURCE_PROPERTY_TYPE_SINGLE

- RESOURCE_PROPERTY_TYPE_STRING

- RESOURCE_PROPERTY_TYPE_RESOURCE

RESOURCE_PROPERTY_NAME

string

Name

RESOURCE_PROPERTY_VALUE

dependent on property type

Value



Availability

Version 5.6