소스 검색

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