本文整理汇总了PHP中eZWorkflow::setIsEnabled方法的典型用法代码示例。如果您正苦于以下问题:PHP eZWorkflow::setIsEnabled方法的具体用法?PHP eZWorkflow::setIsEnabled怎么用?PHP eZWorkflow::setIsEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZWorkflow
的用法示例。
在下文中一共展示了eZWorkflow::setIsEnabled方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
//remove entry from eztrigger table also, if it exists there.
eZTrigger::removeTriggerForWorkflow($workflowID);
// if there is only one group which the workflow belongs to, delete (=disable) it:
eZWorkflow::setIsEnabled(false, $workflowID);
} else {
// if there is more than 1 group, remove only from the group:
eZWorkflowFunctions::removeGroup($workflowID, 0, array($groupID));
}
} else {
// just for sure :-)
eZWorkflow::setIsEnabled(false, $workflowID);
}
}
} else {
// if there is no CurrentGroupID variable, disable every group in variable Workflow_id_checked:
eZWorkflow::setIsEnabled(false, $http->postVariable('Workflow_id_checked'));
}
}
if ($http->hasPostVariable('DeleteButton') and $http->hasPostVariable('Temp_Workflow_id_checked')) {
$checkedIDs = $http->postVariable('Temp_Workflow_id_checked');
foreach ($checkedIDs as $checkedID) {
eZWorkflow::removeWorkflow($checkedID, 1);
eZWorkflowGroupLink::removeWorkflowMembers($checkedID, 1);
}
}
/*$workflows = eZWorkflow::fetchList();
$workflowList = array();
foreach( array_keys( $workflows ) as $workflowID )
{
$workflow = $workflows[$workflowID];
$workflowList[$workflow->attribute( 'id' )] = $workflow;