CBPWorkflowTemplateLoader :: WalkThroughWorkflowTemplate: Bitrix method

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

    
private static function WalkThroughWorkflowTemplate(&$arWorkflowTemplate$callback$user)
    {
        foreach (
$arWorkflowTemplate as $key => $value)
        {
            if (!
call_user_func_array($callback, array($value$user)))
                return 
false;

            if (
is_array($value["Children"]))
            {
                if (!
self::WalkThroughWorkflowTemplate($arWorkflowTemplate[$key]["Children"], $callback$user))
                    return 
false;
            }
        }
        return 
true;
    }