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


PHP CBPActivity::CallStaticMethod方法代碼示例

本文整理匯總了PHP中CBPActivity::CallStaticMethod方法的典型用法代碼示例。如果您正苦於以下問題:PHP CBPActivity::CallStaticMethod方法的具體用法?PHP CBPActivity::CallStaticMethod怎麽用?PHP CBPActivity::CallStaticMethod使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CBPActivity的用法示例。


在下文中一共展示了CBPActivity::CallStaticMethod方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ImportTemplateChecker

 private static function ImportTemplateChecker($arActivity, $user)
 {
     $arErrors = CBPActivity::CallStaticMethod($arActivity["Type"], "ValidateProperties", array($arActivity["Properties"], $user));
     if (count($arErrors) > 0) {
         $m = "";
         foreach ($arErrors as $er) {
             $m .= $er["message"] . ". ";
         }
         throw new Exception($m);
         return false;
     }
     return true;
 }
開發者ID:DarneoStudio,項目名稱:bitrix,代碼行數:13,代碼來源:workflowtemplateloader.php

示例2: die

<?php

require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
CModule::IncludeModule('bizproc');
global $APPLICATION;
if (!check_bitrix_sessid()) {
    die;
}
if (!CBPDocument::CanUserOperateDocumentType(CBPCanUserOperateOperation::CreateWorkflow, $GLOBALS["USER"]->GetID(), $_REQUEST['document_type'])) {
    die;
}
CUtil::DecodeUriComponent($_REQUEST);
$activityType = $_REQUEST['activity'];
$runtime = CBPRuntime::GetRuntime();
$runtime->StartRuntime();
$arActivityDescription = $runtime->GetActivityDescription($activityType);
if ($arActivityDescription == null) {
    die("Bad activity type!" . htmlspecialcharsbx($activityType));
}
$runtime->IncludeActivityFile($activityType);
$isHtml = !empty($_REQUEST['content_type']) && $_REQUEST['content_type'] == 'html';
if ($isHtml) {
    $APPLICATION->ShowAjaxHead();
}
$res = CBPActivity::CallStaticMethod($activityType, "getAjaxResponse", array($_REQUEST));
echo $isHtml ? $res : CUtil::PhpToJSObject($res);
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_after.php";
開發者ID:Satariall,項目名稱:izurit,代碼行數:27,代碼來源:bizproc_activity_ajax.php

示例3: ShowTaskForm

	public static function ShowTaskForm($arTask, $userId, $userName = "", $arRequest = null)
	{
		return CBPActivity::CallStaticMethod(
			$arTask["ACTIVITY"],
			"ShowTaskForm",
			array(
				$arTask,
				$userId,
				$userName,
				$arRequest
			)
		);
	}
開發者ID:ASDAFF,項目名稱:bitrix-5,代碼行數:13,代碼來源:document.php

示例4: GetMessage

 style="display:none"<?php 
}
?>
 id="id_activity_name">
	<td align="right" width="40%"><?php 
echo GetMessage("BP_ACT_SET_ID_ROW");
?>
</td>
	<td width="60%"><input type="text" name="activity_id" value="<?php 
echo htmlspecialcharsbx($activity_id);
?>
" size="50"></td>
</tr>

<?php 
$z = CBPActivity::CallStaticMethod($activityType, "GetPropertiesDialog", array(array(MODULE_ID, ENTITY, $_POST['document_type']), $activityName, $arWorkflowTemplate, $arWorkflowParameters, $arWorkflowVariables, $_POST["postback"] == "Y" ? $_POST : null, $popupWindow->GetFormName(), $popupWindow, $currentSiteId));
echo $z;
?>
</table>
<script>
setTimeout("document.getElementById('bpastitle').focus();", 100);
</script>

<input type="hidden" name="save" value="Y" />
<input type="hidden" name="postback" value="Y" />
<?php 
$popupWindow->EndContent();
$popupWindow->StartButtons();
$popupWindow->ShowStandardButtons();
$popupWindow->EndButtons();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin_js.php";
開發者ID:k-kalashnikov,項目名稱:geekcon_new,代碼行數:31,代碼來源:bizproc_activity_settings.php

示例5: getTaskControls

 public static function getTaskControls($arTask)
 {
     return CBPActivity::CallStaticMethod($arTask["ACTIVITY"], "getTaskControls", array($arTask));
 }
開發者ID:k-kalashnikov,項目名稱:geekcon,代碼行數:4,代碼來源:document.php


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