Browse Source

getRadiusName

Luciano Andrade 7 years ago
parent
commit
a4dc3f72db
1 changed files with 1 additions and 0 deletions
  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); }
 }