本文整理匯總了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;