PHP 클래스 Pressbooks\Sass

파일 보기 프로젝트 열기: pressbooks/pressbooks

공개 프로퍼티들

프로퍼티 타입 설명
$errorsEmail array Email addresses to send log errors.

공개 메소드들

메소드 설명
applyOverrides ( string $scss, string $overrides ) : string Prepend or append SCSS overrides depending on which version of the theme architecture is in use.
compile ( string $scss, array $includes = [] ) : string Returns the compiled CSS from SCSS input
debug ( string $css, $scss, string $filename ) Write CSS to a a debug dir
defaultIncludePaths ( string $type, $theme = null ) Get default include paths
getStringsToLocalize ( ) : array Fetch an array of strings in (S)CSS which need to be localized
isCurrentThemeCompatible ( integer $version = 1, $theme = null ) : boolean Are the current theme's stylesheets SCSS compatible?
parseVariables ( string $scss ) : array Parse an SCSS file into an array of variables.
pathToDebugDir ( ) : string Get path to a directory we can dump debug files into
pathToFonts ( ) : string Get the path to our PB Fonts
pathToGlobals ( ) : string Get the path to our PB Partials
pathToPartials ( ) : string Get the path to our PB Partials
pathToUserGeneratedCss ( ) : string Get path to a directory we can dump user transpiled CSS files into (create dir if it does not exist)
pathToUserGeneratedSass ( ) : string Get path to a directory we can dump user generated Sass files into (create dir if it does not exist)
prependLocalizedVars ( string $scss ) : string Prepend localized version of content string variables.
urlToUserGeneratedCss ( ) : string Get URI to user transpiled CSS files

보호된 메소드들

메소드 설명
logException ( Exception $e ) Log Exceptions

메소드 상세

applyOverrides() 공개 메소드

Prepend or append SCSS overrides depending on which version of the theme architecture is in use.
public applyOverrides ( string $scss, string $overrides ) : string
$scss string The theme SCSS.
$overrides string The SCSS overrides.
리턴 string

compile() 공개 메소드

Returns the compiled CSS from SCSS input
public compile ( string $scss, array $includes = [] ) : string
$scss string
$includes array (optional)
리턴 string

debug() 공개 메소드

Write CSS to a a debug dir
public debug ( string $css, $scss, string $filename )
$css string
$filename string

defaultIncludePaths() 공개 메소드

Get default include paths
public defaultIncludePaths ( string $type, $theme = null )
$type string

getStringsToLocalize() 공개 메소드

Fetch an array of strings in (S)CSS which need to be localized
public getStringsToLocalize ( ) : array
리턴 array

isCurrentThemeCompatible() 공개 메소드

Are the current theme's stylesheets SCSS compatible?
public isCurrentThemeCompatible ( integer $version = 1, $theme = null ) : boolean
$version integer
리턴 boolean

logException() 보호된 메소드

Log Exceptions
protected logException ( Exception $e )
$e Exception

parseVariables() 공개 메소드

Parse an SCSS file into an array of variables.
public parseVariables ( string $scss ) : array
$scss string
리턴 array

pathToDebugDir() 공개 메소드

Get path to a directory we can dump debug files into
public pathToDebugDir ( ) : string
리턴 string

pathToFonts() 공개 메소드

Get the path to our PB Fonts
public pathToFonts ( ) : string
리턴 string

pathToGlobals() 공개 메소드

Get the path to our PB Partials
public pathToGlobals ( ) : string
리턴 string

pathToPartials() 공개 메소드

Get the path to our PB Partials
public pathToPartials ( ) : string
리턴 string

pathToUserGeneratedCss() 공개 메소드

Get path to a directory we can dump user transpiled CSS files into (create dir if it does not exist)
public pathToUserGeneratedCss ( ) : string
리턴 string

pathToUserGeneratedSass() 공개 메소드

Get path to a directory we can dump user generated Sass files into (create dir if it does not exist)
public pathToUserGeneratedSass ( ) : string
리턴 string

prependLocalizedVars() 공개 메소드

Prepend localized version of content string variables.
public prependLocalizedVars ( string $scss ) : string
$scss string
리턴 string

urlToUserGeneratedCss() 공개 메소드

Get URI to user transpiled CSS files
public urlToUserGeneratedCss ( ) : string
리턴 string

프로퍼티 상세

$errorsEmail 공개적으로 프로퍼티

Email addresses to send log errors.
public array $errorsEmail
리턴 array