本文整理汇总了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");