PHP Class DokuCssFile, dokuwiki

@author Chris Smith
Datei anzeigen Open project: splitbrain/dokuwiki Class Usage Examples

Protected Properties

Property Type Description
$filepath
$location file system path to the CSS/Less file
$relative_path base url location of the CSS/Less file

Public Methods

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

Protected Methods

Method Description
getRelativePath ( ) : string Get the relative file system path of this file, relative to dokuwiki's root folder, DOKU_INC

Method Details

__construct() public method

public __construct ( $file )

getRelativePath() protected method

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

load() public method

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.
public load ( string $location = '' ) : string
$location string base url for this file
return string the CSS/Less contents of the file

replacements() public method

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
public replacements ( $match ) : string
return string see http://php.net/preg_replace_callback

Property Details

$filepath protected_oe property

protected $filepath

$location protected_oe property

file system path to the CSS/Less file
protected $location

$relative_path protected_oe property

base url location of the CSS/Less file
protected $relative_path