Template :: getAvailableRobotClasses: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Engine\Template :: getAvailableRobotClasses()
//  /dist/bitrix/modules/bizproc/lib/automation/engine/template.php:280

    
protected static function getAvailableRobotClasses(array $documentType)
    {
        
$key implode('@'$documentType);
        if (!isset(static::
$availableActivityClasses[$key]))
        {
            static::
$availableActivityClasses[$key] = array();
            
$activities = static::getAvailableRobots($documentType);
            foreach (
$activities as $activity)
            {
                static::
$availableActivityClasses[$key][] = $activity['CLASS'];
            }
        }
        return static::
$availableActivityClasses[$key];
    }