src/FlexiPeeHP/Priloha.php
public static function getDownloadUrl($object)
    {
        $urlParts  = parse_url($object->apiURL);
        $pathParts = pathinfo($urlParts['path']);
        return $urlParts['scheme'].'://'.$urlParts['host'] .( array_key_exists('port',$urlParts) ? ':'.$urlParts['port'] : '') .$pathParts['dirname'].'/'.$pathParts['filename'].'/content';
    }
public static function getDownloadUrl($object)
    {
        $urlParts  = parse_url($object->apiURL);
        $pathParts = pathinfo($urlParts['path']);
        return $urlParts['scheme'].'://'.$urlParts['host'] .( array_key_exists('port',$urlParts) ? ':'.$urlParts['port'] : '') .$pathParts['dirname'].'/'.$pathParts['filename'].'/content';
    }
public static function getDownloadUrl ( $ object ) { $ urlParts = parse_url ( $ object -> apiURL ) ; $ pathParts = pathinfo ( $ urlParts [ 'path' ] ) ; return $ urlParts [ 'scheme' ] . '://' . $ urlParts [ 'host' ] . ( array_key_exists ( 'port' , $ urlParts ) ? ':' . $ urlParts [ 'port' ] : '' ) . $ pathParts [ 'dirname' ] . '/' . $ pathParts [ 'filename' ] . '/content' ; }
Obtain url for Attachment Download

@param FlexiBeeRO $object Source object
@return string url
Obtain url for Attachment Download