WorkflowRules Class Reference

Inheritance diagram for WorkflowRules:
ModelToComponentRules AccountAccountAffiliationsWorkflowRules AccountContactAffiliationsWorkflowRules PermitableWorkflowRules SecuredWorkflowRules UsersWorkflowRules AccountsWorkflowRules ActivitiesWorkflowRules ContactsWorkflowRules OpportunitiesWorkflowRules ProductsWorkflowRules ProductTemplatesWorkflowRules ProjectsWorkflowRules WorkflowsTest2WorkflowRules WorkflowsTestWorkflowRules ZurmoWorkflowRules

Public Member Functions

 relationIsUsedAsAttribute (RedBeanModel $model, $relation)
 attributeCanBeTriggered (RedBeanModel $model, $attribute)
 getTriggerValueElementType (RedBeanModel $model, $attribute)

Static Public Member Functions

static getRulesName ()

Detailed Description

Base class of workflow rules that assist with workflow management. Extend this class to make a set of WorkflowRules that is for a specific module or a combination of modules and/or models.

Definition at line 41 of file WorkflowRules.php.


Member Function Documentation

static getRulesName (  )  [static]
Returns:
string|void

Reimplemented from ModelToComponentRules.

Definition at line 46 of file WorkflowRules.php.

relationIsUsedAsAttribute ( RedBeanModel model,
relation 
)

Some relations such as a CustomField are shown as non-related nodes in the workflow wizard. For a custom field this method would return true for example. Whereas account -> opportunities would return false.

Parameters:
RedBeanModel $model
$relation 
Returns:
bool

Definition at line 58 of file WorkflowRules.php.

attributeCanBeTriggered ( RedBeanModel model,
attribute 
)
Parameters:
RedBeanModel $model
$attribute 
Returns:
bool

Definition at line 86 of file WorkflowRules.php.

getTriggerValueElementType ( RedBeanModel model,
attribute 
)
Parameters:
RedBeanModel $model
string $attribute
Returns:
null | string

Definition at line 104 of file WorkflowRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri May 26 07:10:32 2017