src/FlexiPeeHP/FlexiBeeRO.php
public static function companyUrlToOptions($companyUrl)
    {
        $urlParts = parse_url($companyUrl);
        $scheme   = isset($urlParts['scheme']) ? $urlParts['scheme'].'://' : '';
        $host     = isset($urlParts['host']) ? $urlParts['host'] : '';
        $port     = isset($urlParts['port']) ? ':'.$urlParts['port'] : '';
        $path     = isset($urlParts['path']) ? $urlParts['path'] : '';

        $options['company'] = basename($path);
        $options['url']     = $scheme.$host.$port;
        return $options;
    }
public static function companyUrlToOptions($companyUrl)
    {
        $urlParts = parse_url($companyUrl);
        $scheme   = isset($urlParts['scheme']) ? $urlParts['scheme'].'://' : '';
        $host     = isset($urlParts['host']) ? $urlParts['host'] : '';
        $port     = isset($urlParts['port']) ? ':'.$urlParts['port'] : '';
        $path     = isset($urlParts['path']) ? $urlParts['path'] : '';

        $options['company'] = basename($path);
        $options['url']     = $scheme.$host.$port;
        return $options;
    }
public static function companyUrlToOptions ( $ companyUrl ) { $ urlParts = parse_url ( $ companyUrl ) ; $ scheme = isset ( $ urlParts [ 'scheme' ] ) ? $ urlParts [ 'scheme' ] . '://' : '' ; $ host = isset ( $ urlParts [ 'host' ] ) ? $ urlParts [ 'host' ] : '' ; $ port = isset ( $ urlParts [ 'port' ] ) ? ':' . $ urlParts [ 'port' ] : '' ; $ path = isset ( $ urlParts [ 'path' ] ) ? $ urlParts [ 'path' ] : '' ; $ options [ 'company' ] = basename ( $ path ) ; $ options [ 'url' ] = $ scheme . $ host . $ port ; return $ options ; }
Convert companyUrl provided by CustomButton to options array

@param string $companyUrl

@return array Options
Convert companyUrl provided by CustomButton to options array