GlobalConst::saveAll: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Workflow\Type\GlobalConst :: saveAll()
//  /dist/bitrix/modules/bizproc/lib/workflow/type/globalconst.php:67

    
public static function saveAll(array $all)
    {
        
$diff array_diff(array_keys(static::getAll()), array_keys($all));

        foreach (
$all as $id => $property)
        {
            
$all[$id] = FieldType::normalizeProperty($property);
            
Entity\GlobalConstTable::upsertByProperty($id$property);
        }

        if (
$diff)
        {
            foreach (
$diff as $toDelete)
            {
                
Entity\GlobalConstTable::delete($toDelete);
            }
        }

        
//clear cache
        
self::$allCache null;

        return 
true;
    }