GlobalConst :: getAll: Bitrix method

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

    
public static function getAll()
    {
        if (
self::$allCache !== null)
        {
            return 
self::$allCache;
        }

        
$all = [];
        
$res Entity\GlobalConstTable::getList(['order' => ['ID' => 'ASC']]);
        while (
$row $res->fetch())
        {
            
$all[$row['ID']] = Entity\GlobalConstTable::convertToProperty($row);
        }

        return (
self::$allCache $all);
    }