PHP 클래스 DokuCssFile, dokuwiki

@author Chris Smith
파일 보기 프로젝트 열기: splitbrain/dokuwiki 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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