id="Rule" ruleid=""> Edit Remove
GetField($Rule["Conditions"]["FieldId"]); $PossibleValues = $Field->GetPossibleValues(); $Value = $PossibleValues[$Rule["Conditions"]["Value"]]; $Value = defaulthtmlentities($Value); ?> Name()); ?> GetField($Rule["Conditions"]["FieldId"]); $Type = ($Field instanceof MetadataField) ? $Field->Type() : NULL ; switch ($Type) { case MetadataSchema::MDFTYPE_NUMBER: case MetadataSchema::MDFTYPE_DATE: case MetadataSchema::MDFTYPE_TIMESTAMP: $Operator = Rules_GetNumericRuleOperator($Rule); break; case MetadataSchema::MDFTYPE_FLAG: $Operator = Rules_GetFlagRuleOperator($Rule); break; case MetadataSchema::MDFTYPE_TREE: case MetadataSchema::MDFTYPE_CONTROLLEDNAME: case MetadataSchema::MDFTYPE_OPTION: $Operator = Rules_GetControlledNameRuleOperator($Rule); break; case MetadataSchema::MDFTYPE_USER: $Operator = Rules_GetUserRuleOperator($Rule); break; case MetadataSchema::MDFTYPE_IMAGE: case MetadataSchema::MDFTYPE_FILE: $Operator = Rules_GetFileRuleOperator($Rule); break; default: $Operator = Rules_GetBasicRuleOperator($Rule); break; } $Operators = Rules_GetRuleOperators(); $Value = GetArrayValue($Operators, $Operator, $Operators[1]); $Value = defaulthtmlentities($Value); ?> 2, "!=" => 3, "<" => 4, ">" => 5, "<=" => 6, ">=" => 7); return GetArrayValue($Map, $Operator); } function Rules_GetFlagRuleOperator($Rule) { $Operator = GetArrayValue($Rule["Conditions"], "Operator"); if (!$Operator) { return 1; } $Value = GetArrayValue($Rule["Conditions"], "Value"); return $Value ? 8 : 9; } function Rules_GetControlledNameRuleOperator($Rule) { $Operator = GetArrayValue($Rule["Conditions"], "Operator"); return !$Operator ? 1 : 10; } function Rules_GetUserRuleOperator($Rule) { $Operator = GetArrayValue($Rule["Conditions"], "Operator"); return !$Operator ? 1 : 11; } function Rules_GetFileRuleOperator($Rule) { return 1; } function Rules_PrintRuleType($Rule) { ?> Send an e-mail to GetPrivileges(TRUE, FALSE); reset($UserPrivilegeRestrictions); $Selected = current($UserPrivilegeRestrictions); $Value = $PrivilegeList[$Selected]; $Value = defaulthtmlentities($Value); ?> users with GetField($UserIsField); # don't try to print an invalid field name if ($Field->Status() != MetadataSchema::MDFSTAT_OK) { return; } $Value = defaulthtmlentities($Field->GetDisplayName()); ?> users that are the value of GetPlugin("Mailer"); $TemplateList = $MailerPlugin->GetTemplateList(); $Template = defaulthtmlentities($TemplateList[$TemplateId]); ?> using e-mail template

# Automation Rules

A rule failed to update. If this persists, try the alernate interface.

| Condition | Action |
--- | --- | --- | ---

enable selected rules disable selected rules remove selected rules

There are currently no rules defined.