AppProduct class: Difference between revisions
From Catglobe Wiki
More actions
 Created page with "{{CGscriptClass_Template |Name=<nowiki>AppProduct</nowiki> |Description=<nowiki>Represents an AppProduct.</nowiki> |InheritsFrom=object|Methods= {{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Save</nowiki>|Description=<nowiki>Apply all changes to the AppProduct</nowiki>}} {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}} |Properties= {{CGscriptProp..."  | 
				Nguyenduyan (talk | contribs) No edit summary  | 
				||
| Line 3: | Line 3: | ||
|Description=<nowiki>Represents an AppProduct.</nowiki>  | |Description=<nowiki>Represents an AppProduct.</nowiki>  | ||
|InheritsFrom=object|Methods=  | |InheritsFrom=object|Methods=  | ||
{{CGscriptMethods_Template|ReturnType=AppProductRole|Name=<nowiki>AddRole</nowiki>|Description=<nowiki>Add a new blank role</nowiki>}}  | |||
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Save</nowiki>|Description=<nowiki>Apply all changes to the AppProduct</nowiki>}}  | {{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Save</nowiki>|Description=<nowiki>Apply all changes to the AppProduct</nowiki>}}  | ||
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}  | {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}  | ||
Latest revision as of 07:39, 9 September 2025
AppProduct
Represents an AppProduct.
Parent class
Inherits from object
Methods
- AppProductRole AddRole() - Add a new blank role
 - Empty Save() - Apply all changes to the AppProduct
 - (From object) string ToString() - The string representation of the object.
 
Properties
- string DevelopmentUrl { get; set; } - Get/set the development URL
 - bool Enabled { get; set; } - Get/set if the product is enabled
 - bool IsSales { get; set; } - Get/set if this is a sales product
 - LocalizedString Name { get;  } - Get/set the localized name
 - string ObjectTypeName { get;  } - The name of the type of object.
 - int Order { get; set; } - Get/set the order
 - ResourceEdit ResourceModel { get;  } - Edit the Resource
 - CompatibilityArray Roles { get;  } - Get the list of roles
 - string SvgIcon { get; set; } - Get/set the SVG icon content
 - (From object) TypeInformation TypeInformation { get;  } - Get information about this class.
 - string Url { get; set; } - Get/set the product URL
 
Static Methods
- AppProduct AppProduct_create() - Create a new AppProduct
 - AppProduct AppProduct_getById(int id "Id of the item to fetch") - Fetch AppProduct by primary key. Returns Empty if not found