PHP Класс DokuCssFile, dokuwiki

@author Chris Smith
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$filepath
$location file system path to the CSS/Less file
$relative_path base url location of the CSS/Less file

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
getRelativePath ( ) : string Get the relative file system path of this file, relative to dokuwiki's root folder, DOKU_INC

Описание методов

__construct() публичный Метод

public __construct ( $file )

getRelativePath() защищенный Метод

Get the relative file system path of this file, relative to dokuwiki's root folder, DOKU_INC
protected getRelativePath ( ) : string
Результат string relative file system path

load() публичный Метод

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
Результат string the CSS/Less contents of the file

replacements() публичный Метод

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
Результат string see http://php.net/preg_replace_callback

Описание свойств

$filepath защищенное свойство

protected $filepath

$location защищенное свойство

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

$relative_path защищенное свойство

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