Пример #1
0
 public static function GetUserPhone($userId)
 {
     $phones = VI\PhoneTable::getByUserId($userId);
     if (isset($phones['PERSONAL_MOBILE'])) {
         return $phones['PERSONAL_MOBILE'];
     } else {
         if (isset($phones['PERSONAL_PHONE'])) {
             return $phones['PERSONAL_PHONE'];
         } else {
             if (isset($phones['WORK_PHONE'])) {
                 return $phones['WORK_PHONE'];
             }
         }
     }
     return false;
 }