models/Route.php
public function getPermissionName($route)
    {
        if (self::PREFIX_BASIC == $this->routePrefix) {
            return self::PREFIX_BASIC . trim($route, self::PREFIX_BASIC);
        } else {
            return self::PREFIX_ADVANCED . ltrim(trim($route, self::PREFIX_BASIC), self::PREFIX_ADVANCED);
        }
    }
public function getPermissionName($route)
    {
        if (self::PREFIX_BASIC == $this->routePrefix) {
            return self::PREFIX_BASIC . trim($route, self::PREFIX_BASIC);
        } else {
            return self::PREFIX_ADVANCED . ltrim(trim($route, self::PREFIX_BASIC), self::PREFIX_ADVANCED);
        }
    }
public function getPermissionName ( $ route ) { if ( self :: PREFIX_BASIC == $ this -> routePrefix ) { return self :: PREFIX_BASIC . trim ( $ route , self :: PREFIX_BASIC ) ; } else { return self :: PREFIX_ADVANCED . ltrim ( trim ( $ route , self :: PREFIX_BASIC ) , self :: PREFIX_ADVANCED ) ; } }
Returns the correct permission name depending on the configuration.
@param  string $route Route
@return string        Permission name
Returns the correct permission name depending on the configuration .