ResourceTemplateHelper class

From Catglobe Wiki
Revision as of 03:05, 28 February 2019 by Administrator (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>ResourceTemplateHelper</nowiki> |Description=<nowiki>Helper class for fetching information about resource templates</nowiki> |Constructo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ResourceTemplateHelper



Helper class for fetching information about resource templates

Constructors

  • () - Make new helper

Methods

  • Array of BulkmailResourceTemplate GetAllBulkMailTemplates() - Get all templates of the given type
  • Array of BulkSMSResourceTemplate GetAllBulkSmsTemplates() - Get all templates of the given type
  • Array of FolderResourceTemplate GetAllFolderTemplates() - Get all templates of the given type
  • Array of QuestionnaireResourceTemplate GetAllQuestionnaireTemplates() - Get all templates of the given type
  • Array of ResourceTemplate GetAllTemplates(int resourceType "RESOURCE_TYPE_x to determine which list of resource templates to get. 0 to fetch all") - Get resource templates specified by the resource type constant
  • ResourceTemplate GetTemplate(int resourceId "Resource Id") - Get resource templates specified by the resource id
  • ResourceTemplate GetTemplate(string name "Resource name", int resourceType "RESOURCE_TYPE_x to determine which list of resource templates to get") - Get resource templates specified by the resource name
  • 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.

Static Methods

  • Empty ResourceTemplateHelper_initAllLocalizations(Array of ResourceTemplate resourceTemplates "List of resource template to init for") - Fetch all localization from the db in one query