More actions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>WikiDocumentation</nowiki>|HasGetter=1|Description=<nowiki>Information about this function in wiki format.</nowiki>}} | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>WikiDocumentation</nowiki>|HasGetter=1|Description=<nowiki>Information about this function in wiki format.</nowiki>}} | ||
}} | }} | ||
<source lang="javascript"> | <source lang="javascript"> | ||
Line 27: | Line 28: | ||
print(info.WikiDocumentation); | print(info.WikiDocumentation); | ||
/ | /* result: | ||
{{Function_Template|Name=QAS_new|ReturnType=Array | |||
|Parameters= | |Parameters= | ||
|Name=<nowiki>Project Questionnaire unique id</nowiki>|ConstantType=Number, | |Name=<nowiki>Project Questionnaire unique id</nowiki>|ConstantType=Number, | ||
|Name=<nowiki>User unique id</nowiki>|IsOptional=1|ConstantType=Number | |Name=<nowiki>User unique id</nowiki>|IsOptional=1|ConstantType=Number | ||
}} | }} | ||
*/ | |||
</source> | </source> |
Revision as of 08:55, 19 December 2011
FunctionInformation
The FunctionInformation Object
Constructors
- (string functionname "Method to get information on") - Get Information about a specific CGScript function
Methods
- string ToString() - The string representation of the object.
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- TypeInformation TypeInformation { get; } - Get information about this class.
- string WikiDocumentation { get; } - Information about this function in wiki format.
FunctionInformation info = new FunctionInformation("QAS_new");
print(info.ToString());
// result: FunctionInformation
print(info.ObjectTypeName);
// result: FunctionInformation
print(info.TypeInformation);
// result: TypeInformation
print(info.WikiDocumentation);
/* result:
{{Function_Template|Name=QAS_new|ReturnType=Array
|Parameters=
|Name=<nowiki>Project Questionnaire unique id</nowiki>|ConstantType=Number,
|Name=<nowiki>User unique id</nowiki>|IsOptional=1|ConstantType=Number
}}
*/