CBPWorkflowTemplateLoader :: ImportTemplateChecker: Bitrix method

      
<?php 
//  CBPWorkflowTemplateLoader :: ImportTemplateChecker()
//  /dist/bitrix/modules/bizproc/classes/general/workflowtemplateloader.php:793

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