예제 #1
0
 /**
  * @param int $id Delivery service id.
  * @return string Delivery service code.
  */
 public static function getCodeById($id)
 {
     if (intval($id) <= 0) {
         return "";
     }
     $code = \Bitrix\Sale\Delivery\Services\Manager::getCodeById($id);
     if (strlen($code) <= 0) {
         $code = 'new' . strval($id) . ':profile';
     }
     return $code;
 }