RestService :: validateActivityCode: Bitrix method

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

    
private static function validateActivityCode($code)
    {
        if (empty(
$code))
            throw new 
RestException('Empty activity code!'self::ERROR_ACTIVITY_VALIDATION_FAILURE);
        if (!
preg_match('#^[a-z0-9\.\-_]+$#i'$code))
            throw new 
RestException('Wrong activity code!'self::ERROR_ACTIVITY_VALIDATION_FAILURE);
    }