%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/home/bitrix/www/bitrix/modules/bizproc/classes/general/
Upload File :
Create Path :
Current File : //proc/self/root/home/bitrix/www/bitrix/modules/bizproc/classes/general/activitycondition.php

<?
abstract class CBPActivityCondition
{
	public abstract function Evaluate(CBPActivity $ownerActivity);

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

		$classname = 'CBP'.$code;
		return new $classname($data);
	}

	public static function ValidateProperties($value = null, CBPWorkflowTemplateUser $user = null)
	{
		return array();
	}

	public 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);
	}
}

Zerion Mini Shell 1.0