本文整理匯總了PHP中CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType方法的典型用法代碼示例。如果您正苦於以下問題:PHP CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType方法的具體用法?PHP CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType怎麽用?PHP CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CBPDocument
的用法示例。
在下文中一共展示了CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
}
}
}
}
}
}
}
if (false == $boolFlag) {
if ($ex = $APPLICATION->GetException()) {
$strWarning .= $ex->GetString() . "<br>";
$bVarsFromForm = true;
}
}
}
if (!$bVarsFromForm) {
if ($bBizproc && $_REQUEST['BIZ_PROC_ADD_DEFAULT_TEMPLATES'] == 'Y' && CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType(array("iblock", "CIBlockDocument", "iblock_" . $ID)) <= 0 && $arFields["BIZPROC"] == "Y") {
CBPDocument::AddDefaultWorkflowTemplates(array("iblock", "CIBlockDocument", "iblock_" . $ID));
}
$DB->Commit();
//Check if index needed
CIBlock::CheckForIndexes($ID);
if ($bCatalog) {
if (isset($boolNeedAgent) && $boolNeedAgent == true) {
$intYandexExport = CCatalog::GetList(array(), array('YANDEX_EXPORT' => 'Y'), array());
CAgent::RemoveAgent("CCatalog::PreGenerateXML(\"yandex\");", "catalog");
if (0 < $intYandexExport) {
CAgent::AddAgent("CCatalog::PreGenerateXML(\"yandex\");", "catalog", "N", IntVal(COption::GetOptionString("catalog", "yandex_xml_period", "24")) * 60 * 60, "", "Y");
}
}
}
$ob = new CAutoSave();
示例2:
if (false == $boolFlag)
{
if($ex = $APPLICATION->GetException())
{
$strWarning .= $ex->GetString()."<br>";
$bVarsFromForm = true;
}
}
}
if(!$bVarsFromForm)
{
if(
$bBizproc
&& $_REQUEST['BIZ_PROC_ADD_DEFAULT_TEMPLATES']=='Y'
&& CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType(array("iblock", "CIBlockDocument", "iblock_".$ID))<=0
&& $arFields["BIZPROC"] == "Y"
)
CBPDocument::AddDefaultWorkflowTemplates(array("iblock", "CIBlockDocument", "iblock_".$ID));
$DB->Commit();
//Check if index needed
CIBlock::CheckForIndexes($ID);
if ($bCatalog)
{
if (isset($boolNeedAgent) && $boolNeedAgent == true)
{
$intYandexExport = CCatalog::GetList(array(),array('YANDEX_EXPORT' => 'Y'),array());
CAgent::RemoveAgent("CCatalog::PreGenerateXML(\"yandex\");", "catalog");