浏览代码

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); }
 }