CBPActivityCondition::callStaticMethod

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPActivityCondition
  4. callStaticMethod
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/activitycondition.php
  • Класс: CBPActivityCondition
  • Вызов: CBPActivityCondition::callStaticMethod
static function callStaticMethod($code, $method, $arParameters = array())
{
	$runtime = CBPRuntime::GetRuntime();
	$runtime->IncludeActivityFile($code);

	if (preg_match("#[^a-zA-Z0-9_]#", $code))
	{
		throw new Exception("Activity '" . $code . "' is not valid");
	}

	$classname = 'CBP'.$code;

	return call_user_func_array(array($classname, $method), $arParameters);
}

Добавить комментарий