PHP 클래스 WPLessPlugin

저자: oncletom
상속: extends WPPluginToolkitPlugin
파일 보기 프로젝트 열기: oncletom/wp-less 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$match_pattern used to match stylesheet files to process them as pure CSS

보호된 프로퍼티들

프로퍼티 타입 설명
$compiler null | WPLessCompiler
$is_filters_registered boolean
$is_hooks_registered boolean

공개 메소드들

메소드 설명
__construct ( WPLessConfiguration $configuration )
addImportDir ( string $dir ) Proxy method
addVariable ( $name, $value ) Proxy method
dispatch ( ) Dispatches all events of the plugin
filterStylesheetUri ( string $css, WPLessStylesheet $stylesheet ) : string Correct Stylesheet URI
getCompiler ( )
getImportDir ( ) : array Proxy method
getStyles ( ) : WP_Styles Returns WordPress Styles manager
install ( ) Performs plugin install actions
instantiateCompiler ( )
processEditorStylesheets ( string $mce_css ) : string Compile editor stylesheets registered via add_editor_style()
processStylesheet ( string $handle, $force = false ) : WPLessStylesheet Process a single stylesheet
processStylesheets ( $force = false ) Process all stylesheets to compile just in time
registerFunction ( $name, $callback ) Proxy method
setImportDir ( array $dirs ) Proxy method
setVariables ( array $variables ) Proxy method
uninstall ( ) Performs plugin uninstall actions
unregisterFunction ( $name ) Proxy method

보호된 메소드들

메소드 설명
_filterStylesheetUri ( array $matches ) : string Returns a proper url() CSS key with absolute paths if needed
getLessCompilerPath ( ) Load the parent compiler class. This is provided via lessc.inc.php for both the lessphp and less.php implementations
getQueuedStylesToProcess ( ) : array Find any style to process
registerHooks ( ) Method to register hooks (and do it only once)

메소드 상세

__construct() 공개 메소드

public __construct ( WPLessConfiguration $configuration )
$configuration WPLessConfiguration

_filterStylesheetUri() 보호된 메소드

Returns a proper url() CSS key with absolute paths if needed
protected _filterStylesheetUri ( array $matches ) : string
$matches array Expects at least 0, 'uri' and 'quote' keys
리턴 string

addImportDir() 공개 메소드

Proxy method
또한 보기: lessc::addImportDir()
부터: 1.5.0
public addImportDir ( string $dir )
$dir string

addVariable() 공개 메소드

Proxy method
또한 보기: http://leafo.net/lessphp/docs/#setting_variables_from_php
부터: 1.4
public addVariable ( $name, $value )

dispatch() 공개 메소드

Dispatches all events of the plugin
부터: 1.3
저자: oncletom
public dispatch ( )

filterStylesheetUri() 공개 메소드

It enables the cache without loosing reference to URI
부터: 1.2
저자: oncletom
public filterStylesheetUri ( string $css, WPLessStylesheet $stylesheet ) : string
$css string parsed CSS
$stylesheet WPLessStylesheet
리턴 string parsed and fixed CSS

getCompiler() 공개 메소드

public getCompiler ( )

getImportDir() 공개 메소드

Proxy method
또한 보기: WPLessCompiler::getImportDir()
부터: 1.5.0
public getImportDir ( ) : array
리턴 array

getLessCompilerPath() 보호된 메소드

Load the parent compiler class. This is provided via lessc.inc.php for both the lessphp and less.php implementations
부터: 1.7.1
저자: fabrizim
protected getLessCompilerPath ( )

getQueuedStylesToProcess() 보호된 메소드

Find any style to process
부터: 1.0
저자: oncletom
protected getQueuedStylesToProcess ( ) : array
리턴 array styles to process

getStyles() 공개 메소드

Returns WordPress Styles manager
부터: 1.0
저자: oncletom
public getStyles ( ) : WP_Styles
리턴 WP_Styles styles instance

install() 공개 메소드

Performs plugin install actions
부터: 1.5
public install ( )

instantiateCompiler() 공개 메소드

public instantiateCompiler ( )

processEditorStylesheets() 공개 메소드

Compile editor stylesheets registered via add_editor_style()
public processEditorStylesheets ( string $mce_css ) : string
$mce_css string Comma separated list of CSS file URLs
리턴 string $mce_css New comma separated list of CSS file URLs

processStylesheet() 공개 메소드

Process a single stylesheet
부터: 1.1
저자: oncletom
public processStylesheet ( string $handle, $force = false ) : WPLessStylesheet
$handle string
$force boolean If set to true, rebuild all stylesheets, without considering they are updated or not
리턴 WPLessStylesheet

processStylesheets() 공개 메소드

Process all stylesheets to compile just in time
부터: 1.0
저자: oncletom
public processStylesheets ( $force = false )
$force boolean If set to true, rebuild all stylesheets, without considering they are updated or not

registerFunction() 공개 메소드

Proxy method
또한 보기: http://leafo.net/lessphp/docs/#custom_functions
부터: 1.4.2
public registerFunction ( $name, $callback )

registerHooks() 보호된 메소드

Method to register hooks (and do it only once)
부터: 1.1
저자: oncletom
protected registerHooks ( )

setImportDir() 공개 메소드

Proxy method
또한 보기: lessc::setImportDir()
부터: 1.5.0
public setImportDir ( array $dirs )
$dirs array

setVariables() 공개 메소드

Proxy method
또한 보기: http://leafo.net/lessphp/docs/#setting_variables_from_php
부터: 1.4
public setVariables ( array $variables )
$variables array

uninstall() 공개 메소드

Performs plugin uninstall actions
부터: 1.5
public uninstall ( )

unregisterFunction() 공개 메소드

Proxy method
또한 보기: lessc::unregisterFunction()
부터: 1.4.2
public unregisterFunction ( $name )

프로퍼티 상세

$compiler 보호되어 있는 프로퍼티

protected null|WPLessCompiler $compiler
리턴 null | WPLessCompiler

$is_filters_registered 보호되어 있는 프로퍼티

protected bool $is_filters_registered
리턴 boolean

$is_hooks_registered 보호되어 있는 프로퍼티

protected bool $is_hooks_registered
리턴 boolean

$match_pattern 공개적으로 정적으로 프로퍼티

used to match stylesheet files to process them as pure CSS
public static $match_pattern