In CSS content, rewrite file relative URIs as root relative
Signature
public function rewrite(string
$css,
string
$currentDir,
[string
$docRoot = NULL,
[array
$symlinks = ]] )
Parameters
$css
—
string
$currentDir
—
string
The directory of the current CSS file.
$docRoot
—
string
The document root of the web site in which the CSS file resides (default = $_SERVER['DOCUMENT_ROOT']).
$symlinks
—
array
(default = array()) If the CSS file is stored in a symlink-ed directory, provide an array of link paths to target paths, where the link paths are within the document root. Because paths need to be normalized for this to work, use "//" to substitute the doc root in the link paths (the array keys). E.g.: <code> array('//symlink' => '/real/target/path') // unix array('//static' => 'D:\\staticStorage') // Windows </code>