當前位置: 首頁>>代碼示例>>PHP>>正文


PHP eZWorkflow::removeWorkflow方法代碼示例

本文整理匯總了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();
開發者ID:nfrp,項目名稱:ezpublish,代碼行數:31,代碼來源:workflowlist.php

示例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'));
 }
開發者ID:nfrp,項目名稱:ezpublish,代碼行數:16,代碼來源:ezworkflowevent_regression.php


注:本文中的eZWorkflow::removeWorkflow方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。