lib/Minify/HTML/Helper.php
public static function getUri($keyOrFiles, $opts = array())
    {
        $opts = array_merge(array( // default options
            'farExpires' => true,
            'debug' => false,
            'charset' => 'UTF-8',
            'minAppUri' => '/min',
            'rewriteWorks' => true,
            'groupsConfigFile' => self::app()->groupsConfigPath,
        ), $opts);

        $h = new self;
        $h->minAppUri = $opts['minAppUri'];
        $h->rewriteWorks = $opts['rewriteWorks'];
        $h->groupsConfigFile = $opts['groupsConfigFile'];

        if (is_array($keyOrFiles)) {
            $h->setFiles($keyOrFiles, $opts['farExpires']);
        } else {
            $h->setGroup($keyOrFiles, $opts['farExpires']);
        }
        $uri = $h->getRawUri($opts['farExpires'], $opts['debug']);

        return htmlspecialchars($uri, ENT_QUOTES, $opts['charset']);
    }
public static function getUri($keyOrFiles, $opts = array())
    {
        $opts = array_merge(array( // default options
            'farExpires' => true,
            'debug' => false,
            'charset' => 'UTF-8',
            'minAppUri' => '/min',
            'rewriteWorks' => true,
            'groupsConfigFile' => self::app()->groupsConfigPath,
        ), $opts);

        $h = new self;
        $h->minAppUri = $opts['minAppUri'];
        $h->rewriteWorks = $opts['rewriteWorks'];
        $h->groupsConfigFile = $opts['groupsConfigFile'];

        if (is_array($keyOrFiles)) {
            $h->setFiles($keyOrFiles, $opts['farExpires']);
        } else {
            $h->setGroup($keyOrFiles, $opts['farExpires']);
        }
        $uri = $h->getRawUri($opts['farExpires'], $opts['debug']);

        return htmlspecialchars($uri, ENT_QUOTES, $opts['charset']);
    }
public static function getUri ( $ keyOrFiles , $ opts = array ( ) ) { $ opts = array_merge ( array ( // default options 'farExpires' => true , 'debug' => false , 'charset' => 'UTF-8' , 'minAppUri' => '/min' , 'rewriteWorks' => true , 'groupsConfigFile' => self :: app ( ) -> groupsConfigPath , ) , $ opts ) ; $ h = new self ; $ h -> minAppUri = $ opts [ 'minAppUri' ] ; $ h -> rewriteWorks = $ opts [ 'rewriteWorks' ] ; $ h -> groupsConfigFile = $ opts [ 'groupsConfigFile' ] ; if ( is_array ( $ keyOrFiles ) ) { $ h -> setFiles ( $ keyOrFiles , $ opts [ 'farExpires' ] ) ; } else { $ h -> setGroup ( $ keyOrFiles , $ opts [ 'farExpires' ] ) ; } $ uri = $ h -> getRawUri ( $ opts [ 'farExpires' ] , $ opts [ 'debug' ] ) ; return htmlspecialchars ( $ uri , ENT_QUOTES , $ opts [ 'charset' ] ) ; }
Get an HTML-escaped Minify URI for a group or set of files

@param string|array $keyOrFiles a group key or array of filepaths/URIs
@param array $opts options:
'farExpires' : (default true) append a modified timestamp for cache revving
'debug' : (default false) append debug flag
'charset' : (default 'UTF-8') for htmlspecialchars
'minAppUri' : (default '/min') URI of min directory
'rewriteWorks' : (default true) does mod_rewrite work in min app?
'groupsConfigFile' : specify if different
@return string
Get an HTML - escaped Minify URI for a group or set of files