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


PHP eZWorkflow::setIsEnabled方法代碼示例

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


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