Property | Type | Description | |
---|---|---|---|
$filepath | |||
$location | file system path to the CSS/Less file | ||
$relative_path | base url location of the CSS/Less file |
Method | Description | |
---|---|---|
__construct ( $file ) | ||
load ( string $location = '' ) : string | Load the contents of the css/less file and adjust any relative paths/urls (relative to this file) to be relative to the dokuwiki root: the web root (DOKU_BASE) for most files; the file system root (DOKU_INC) for less files. | |
replacements ( $match ) : string | preg_replace callback to adjust relative urls from relative to this file to relative to the appropriate dokuwiki root location as described in the code |
Method | Description | |
---|---|---|
getRelativePath ( ) : string | Get the relative file system path of this file, relative to dokuwiki's root folder, DOKU_INC |
protected getRelativePath ( ) : string | ||
return | string | relative file system path |
public replacements ( $match ) : string | ||
return | string | see http://php.net/preg_replace_callback |