[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/modules/com_vtiger_workflow/ -> VTWorkflowTemplateManager.inc (summary)

(no description)

File Size: 197 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

VTWorkflowTemplateManager:: (11 methods):
  __construct()
  newTemplate()
  retrieveTemplate()
  createWorkflow()
  getTemplatesForModule()
  getTemplates()
  saveTemplate()
  deleteTemplate()
  dumpAllTemplates()
  loadTemplates()
  getTemplatesForResult()

VTWorkflowTemplate:: (0 methods):


Class: VTWorkflowTemplateManager  - X-Ref

__construct($adb)   X-Ref
No description

newTemplate($title, $workflow)   X-Ref
Create anew template instance from a workflow

This template instance will not be saved. The save
will have to be done explicitly.

param: $title The title of the template
param: $workflow A workflow instance.

retrieveTemplate($templateId)   X-Ref
Retrieve a template given it's id

param: $templateId The id of the template
return: The template object

createWorkflow($template)   X-Ref
Create a workflow from a template

The new workflow will also be added to the database.

param: $template The template to use
return: A workflow object.

getTemplatesForModule($moduleName)   X-Ref
Get template objects for a particular module.

param: $moduleName The name of the module
return: An array containing template objects

getTemplates()   X-Ref
Get all templates

Get all the templates as an array

return: An array containing template objects.

saveTemplate($template)   X-Ref
Save a template

If the object is a newly created template it
will be added to the database and a field id containing
the new id will be added to the object.

param: $template The template object to save.

deleteTemplate($templateId)   X-Ref
Delete a template

$templateId The id of the template to delete.

dumpAllTemplates()   X-Ref
Dump all the templates in vtiger into a string

This can be used for exporting templates from one
machine to another

return: The string dump of the templates.

loadTemplates($str)   X-Ref
Load templates form a dumped string

param: $str The string dump generated from dumpAllTemplates

getTemplatesForResult($result)   X-Ref
No description

Class: VTWorkflowTemplate  - X-Ref



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1