فهرست منبع

getRadiusName

Luciano Andrade 7 سال پیش
والد
کامیت
a4dc3f72db
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/FTTHBundle/Entity/Profile.php

+ 1 - 0
src/FTTHBundle/Entity/Profile.php

@@ -151,4 +151,5 @@ class Profile implements TenancyIdTraitInterface
 
     function getDownloadAsK(){return $this->units($this->getDownload(), "k"); }
     function getUploadAsK()  {return $this->units($this->getUpload()  , "k"); }
+    function getRadiusName()  {return preg_replace("|[^A-Za-z0-9]|", "-", $this->name); }
 }