本文整理汇总了PHP中eZWorkflow::removeWorkflow方法的典型用法代码示例。如果您正苦于以下问题:PHP eZWorkflow::removeWorkflow方法的具体用法?PHP eZWorkflow::removeWorkflow怎么用?PHP eZWorkflow::removeWorkflow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZWorkflow
的用法示例。
在下文中一共展示了eZWorkflow::removeWorkflow方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
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;
}
*/
$user = eZUser::currentUser();
$list_in_group = eZWorkflowGroupLink::fetchWorkflowList(0, $WorkflowGroupID, $asObject = true);
$workflow_list = eZWorkflow::fetchList();
$list = array();
示例2: removeWorkflow
/**
* Helper function used to remove a workflow.
* Will remove the workflow, its events, its triggers and its group link.
*
* @param eZWorkflow $workflow
* @return void
*/
protected function removeWorkflow(eZWorkflow $workflow)
{
// Remove trigger
eZTrigger::removeTriggerForWorkflow($workflow->attribute('id'));
// remove the workflow, its events and the group link
eZWorkflow::removeEvents(false, $workflow->attribute('id'), $workflow->attribute('version'));
eZWorkflow::removeWorkflow($this->workflow->attribute('id'), $workflow->attribute('version'));
eZWorkflowGroupLink::removeWorkflowMembers($workflow->attribute('id'), $workflow->attribute('version'));
}