RestService :: getActivityListInternal: Bitrix method

      
<?php 
//  Bitrix\Bizproc\RestService :: getActivityListInternal()
//  /dist/bitrix/modules/bizproc/lib/restservice.php:529

    
private static function getActivityListInternal($params$server$isRobot false)
    {
        if(!
$server->getClientId())
        {
            throw new 
AccessException("Application context required");
        }

        
self::checkAdminPermissions();
        
$iterator RestActivityTable::getList(array(
            
'select' => array('CODE'),
            
'filter' => array(
                
'=APP_ID' => $server->getClientId(),
                
'=IS_ROBOT' => $isRobot 'Y' 'N'
            
)
        ));

        
$result = array();
        while (
$row $iterator->fetch())
        {
            
$result[] = $row['CODE'];
        }
        return 
$result;
    }