PHP 클래스 Leafo\ScssPhp\Compiler

저자: Leaf Corcoran ([email protected])
파일 보기 프로젝트 열기: leafo/scssphp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$defaultValue
$emptyList
$emptyMap
$emptyString
$false
$null
$nullString
$selfSelector
$true
$with
$without

보호된 프로퍼티들

프로퍼티 타입 설명
$charsetSeen
$encoding
$env
$formatter
$importCache
$importPaths
$importedFiles
$libAbs
$libAdjustColor
$libAdjustHue
$libAlpha
$libAppend
$libBlue
$libCeil
$libChangeColor
$libComparable
$libComplement
$libDarken
$libDesaturate
$libFadeIn
$libFadeOut
$libFeatureExists
$libFloor
$libFunctionExists
$libGlobalVariableExists
$libGrayscale
$libGreen
$libHsl
$libHsla
$libHue
$libIeHexStr
$libIf
$libIndex
$libInspect
$libInvert
$libJoin
$libKeywords
$libLength
$libLighten
$libLightness
$libMapGet
$libMapHasKey
$libMapKeys
$libMapMerge
$libMapRemove
$libMapValues
$libMix mix two colors
$libMixinExists
$libNth
$libOpacify increases opacity by amount
$libOpacity
$libPercentage
$libQuote
$libRandom
$libRed
$libRgb
$libRgba
$libRound
$libSaturate
$libSaturation
$libScaleColor
$libSetNth
$libStrIndex
$libStrInsert
$libStrLength
$libStrSlice
$libToLowerCase
$libToUpperCase
$libTransparentize decreases opacity by amount
$libTypeOf
$libUnit
$libUnitless
$libUnquote
$libVariableExists
$lineNumberStyle
$namespaces array
$operatorNames array
$registeredFeatures
$registeredVars
$rootBlock
$rootEnv
$scope
$sourceNames
$storeEnv
$userFunctions

공개 메소드들

메소드 설명
__construct ( ) Constructor
addFeature ( string $name ) Add feature
addImportPath ( string $path ) Add import path
addParsedFile ( string $path ) Adds to list of parsed files
assertColor ( array $value ) : array Assert value is a color
assertList ( array $value ) : array Assert value is a list
assertMap ( array $value ) : array Assert value is a map
assertNumber ( array $value ) : integer | float Assert value is a number
compile ( string $code, string $path = null ) : string Compile scss
compileValue ( array $value ) : string Compiles a primitive value into a CSS property value.
findImport ( string $url ) : string | null Return the file path for an import url if it exists
get ( string $name, boolean $shouldThrow = true, Leafo\ScssPhp\Compiler\Environment $env = null ) : mixed Get variable
getParsedFiles ( ) : array Returns list of parsed files
getVariables ( ) : array Returns list of variables
normalizeValue ( array $value ) : array Normalize value
registerFunction ( string $name, callable $func, array $prototype = null ) Register function
setEncoding ( string $encoding ) Set encoding
setFormatter ( string $formatterName ) Set formatter
setIgnoreErrors ( boolean $ignoreErrors ) : Compiler Ignore errors?
setImportPaths ( string | array $path ) Set import paths
setLineNumberStyle ( string $lineNumberStyle ) Set line number style
setNumberPrecision ( integer $numberPrecision ) Set number precision
setVariables ( array $variables ) Set variables
throwError ( string $msg ) Throw error (exception)
toBool ( mixed $thing ) : array Cast to boolean
toHSL ( integer $red, integer $green, integer $blue ) : array Convert RGB to HSL
toRGB ( integer $hue, integer $saturation, integer $lightness ) : array Convert HSL to RGB
unregisterFunction ( string $name ) Unregister function
unsetVariable ( string $name ) Unset variable

보호된 메소드들

메소드 설명
adjustHsl ( $color, $idx, $amount )
alterColor ( $args, $fn ) helper function for adjust_color, change_color, and scale_color
applyArguments ( array $argDef, array $argValues ) Apply argument values per definition
callNativeFunction ( string $name, array $args, array &$returnValue ) : boolean Call built-in and registered (PHP) functions
callScssFunction ( string $name, $argValues, array &$returnValue ) : boolean Call SCSS @function
coerceColor ( array $value ) : array | null Coerce value to color
coerceForExpression ( array $value ) : array | null Coerce color for expression
coerceList ( array $item, $delim = ',' ) : array Coerce something to list
coerceMap ( array $item ) : array Coerce something to map
coercePercent ( array $value ) : integer | float Coerce value to a percentage
coerceString ( array $value ) : array | null Coerce value to string
collapseSelectors ( array $selectors ) : string Collapse selectors
combineSelectorSingle ( array $base, array $other ) : array Combine selector single
compileAtRoot ( Leafo\ScssPhp\Block $block ) Compile at-root
compileBlock ( Leafo\ScssPhp\Block $block ) Recursively compiles a block.
compileChild ( array $child, Leafo\ScssPhp\Formatter\OutputBlock $out ) : array Compile child; returns a value to halt execution
compileChildren ( array $stms, Leafo\ScssPhp\Formatter\OutputBlock $out ) : array Compile children and return result
compileChildrenNoReturn ( array $stms, Leafo\ScssPhp\Formatter\OutputBlock $out ) Compile children and throw exception if unexpected @return
compileComment ( array $block ) Compile root level comment
compileDirective ( Leafo\ScssPhp\Block $block ) Compile directive
compileImport ( array $rawPath, array $out, boolean $once = false ) : boolean Compile import; returns true if the value was something that could be imported
compileKeyframeBlock ( Leafo\ScssPhp\Block $block, array $selectors ) Compile keyframe block
compileMedia ( Leafo\ScssPhp\Block $media ) Compile media
compileMediaQuery ( array $queryList ) : string Compile media query
compileNestedBlock ( Leafo\ScssPhp\Block $block, array $selectors ) Compile nested block
compileRoot ( Leafo\ScssPhp\Block $rootBlock ) Compile root
compileSelector ( array $selector ) : string Compile selector to string; self(&) should have been replaced by now
compileSelectorPart ( arary $piece ) : string Compile selector part
compileStringContent ( array $string ) : string Compile string content
evalSelector ( array $selector ) : array Evaluate selector
evalSelectorPart ( array $part ) : array Evaluate selector part; replaces all the interpolates, stripping quotes
evalSelectors ( array $selectors ) : array Evaluate selectors
expToString ( array $exp ) : array Reduce expression to string
extractInterpolation ( array $list ) : array Extract interpolation; it doesn't need to be recursive, compileValue will handle that
extractRelationshipFromFragment ( array $fragment ) : array Extract a relationship from the fragment.
fileExists ( string $name ) : boolean Does file exist?
fixColor ( array $c ) : array Make sure a color's components don't go out of bounds
flattenList ( array $list ) : string Flatten list
flattenSelectorSingle ( array $single ) : array Flatten selector single; joins together .classes and #ids
flattenSelectors ( Leafo\ScssPhp\Formatter\OutputBlock $block, string $parentKey = null ) Flatten selectors
getBuiltinFunction ( string $name ) : array Get built-in function
getNormalizedNumbers ( array $args ) : array Helper to normalize args containing numbers
getStoreEnv ( ) : Leafo\ScssPhp\Compiler\Environment Get store environment
handleImportLoop ( string $name ) Handle import loop
has ( string $name, Leafo\ScssPhp\Compiler\Environment $env = null ) : boolean Has variable?
hasSelectorPlaceholder ( array $selector ) : boolean Has selector placeholder?
importFile ( string $path, array $out ) Import file
injectVariables ( array $args ) Inject variables
isImmediateRelationshipCombinator ( string $value ) : boolean Is the value a direct relationship combinator?
isSelfExtend ( array $target, array $origin ) : boolean Is self extend?
isTruthy ( array $value ) : array Is truthy?
joinSelectors ( array $parent, array $child ) : array Join selectors; looks for & to replace, or append parent before child
libAbs ( $args )
libAdjustColor ( $args )
libAdjustHue ( $args )
libAlpha ( $args )
libAppend ( $args )
libBlue ( $args )
libCall ( $args, $kwargs ) protected static $libCall = ['name', 'args.
libCeil ( $args )
libChangeColor ( $args )
libComparable ( $args )
libComplement ( $args )
libCounter ( array $args ) Workaround IE7's content counter bug.
libDarken ( $args )
libDesaturate ( $args )
libFadeIn ( $args )
libFadeOut ( $args )
libFeatureExists ( $args )
libFloor ( $args )
libFunctionExists ( $args )
libGlobalVariableExists ( $args )
libGrayscale ( $args )
libGreen ( $args )
libHsl ( $args )
libHsla ( $args )
libHue ( $args )
libIeHexStr ( $args )
libIf ( $args )
libIndex ( $args )
libInspect ( $args )
libInvert ( $args )
libJoin ( $args )
libKeywords ( $args )
libLength ( $args )
libLighten ( $args )
libLightness ( $args )
libListSeparator ( $args ) protected static $libListSeparator = ['list.
libMapGet ( $args )
libMapHasKey ( $args )
libMapKeys ( $args )
libMapMerge ( $args )
libMapRemove ( $args )
libMapValues ( $args )
libMax ( $args )
libMin ( $args )
libMix ( $args )
libMixinExists ( $args )
libNth ( $args )
libOpacify ( $args )
libOpacity ( $args )
libPercentage ( $args )
libQuote ( $args )
libRandom ( $args )
libRed ( $args )
libRgb ( $args )
libRgba ( $args )
libRound ( $args )
libSaturate ( $args )
libSaturation ( $args )
libScaleColor ( $args )
libSetNth ( $args )
libStrIndex ( $args )
libStrInsert ( $args )
libStrLength ( $args )
libStrSlice ( $args )
libToLowerCase ( $args )
libToUpperCase ( $args )
libTransparentize ( $args )
libTypeOf ( $args )
libUniqueId ( )
libUnit ( $args )
libUnitless ( $args )
libUnquote ( $args )
libVariableExists ( $args )
libZip ( $args )
listSeparatorForJoin ( $list1, $sep )
makeOutputBlock ( string $type, array $selectors = null ) : Leafo\ScssPhp\Formatter\OutputBlock Make output block
matchExtends ( array $selector, array &$out, integer $from, boolean $initial = true ) Match extends
matchExtendsSingle ( array $rawSingle, array &$outOrigin ) : boolean Match extends single
mediaParent ( Leafo\ScssPhp\Formatter\OutputBlock $scope ) : Leafo\ScssPhp\Formatter\OutputBlock Media parent
mergeDirectRelationships ( $selectors1, $selectors2 )
mergeMediaTypes ( array $type1, array $type2 ) : array | null Merge media types
missingSelectors ( ) Report missing selectors
multiplyMedia ( Leafo\ScssPhp\Compiler\Environment $env = null, array $childQueries = null ) : array Multiply media
multiplySelectors ( Leafo\ScssPhp\Compiler\Environment $env ) : array Find the final set of selectors
normalizeName ( string $name ) : string Normalize name
opAdd ( array $left, array $right ) : array Add strings
opAddNumberNumber ( array $left, array $right ) : array Add numbers
opAnd ( array $left, array $right, boolean $shouldEval ) : array Boolean and
opCmpNumberNumber ( array $left, array $right ) : array Three-way comparison, aka spaceship operator
opColorColor ( string $op, array $left, array $right ) : array Compare colors
opColorNumber ( string $op, array $left, array $right ) : array Compare color and number
opDivNumberNumber ( array $left, array $right ) : array Divide numbers
opEq ( array $left, array $right ) : array Compare number1 == number2
opGtNumberNumber ( array $left, array $right ) : array Compare number1 > number2
opGteNumberNumber ( array $left, array $right ) : array Compare number1 >= number2
opLtNumberNumber ( array $left, array $right ) : array Compare number1 < number2
opLteNumberNumber ( array $left, array $right ) : array Compare number1 <= number2
opModNumberNumber ( array $left, array $right ) : array Mod numbers
opMulNumberNumber ( array $left, array $right ) : array Multiply numbers
opNeq ( array $left, array $right ) : array Compare number1 != number2
opNumberColor ( string $op, array $left, array $right ) : array Compare number and color
opOr ( array $left, array $right, boolean $shouldEval ) : array Boolean or
opSubNumberNumber ( array $left, array $right ) : array Subtract numbers
parserFactory ( string $path ) : Parser Instantiate parser
popEnv ( ) Pop environment
pushEnv ( Leafo\ScssPhp\Block $block = null ) : Leafo\ScssPhp\Compiler\Environment Push environment
pushExtends ( array $target, array $origin, stdClass $block ) Push extends
reduce ( array $value, boolean $inExp = false ) : array Reduce value
set ( string $name, mixed $value, boolean $shadow = false, Leafo\ScssPhp\Compiler\Environment $env = null ) Set variable
setExisting ( string $name, mixed $value, Leafo\ScssPhp\Compiler\Environment $env ) Set existing variable
setRaw ( string $name, mixed $value, Leafo\ScssPhp\Compiler\Environment $env ) Set raw variable
shouldEval ( array $value ) : boolean Should $value cause its operand to eval
sortArgs ( array $prototype, array $args ) : array Sorts keyword arguments

비공개 메소드들

메소드 설명
coerceValue ( mixed $value ) : array Coerce a php value into a scss one
compactEnv ( Leafo\ScssPhp\Compiler\Environment $env ) : array Convert env linked list to stack
compileWith ( array $with ) : integer Compile @at-root's with: inclusion / without: exclusion into filter flags
extractEnv ( array $envs ) : Leafo\ScssPhp\Compiler\Environment Convert env stack to singly linked list
filterWithout ( array $envs, integer $without ) : Leafo\ScssPhp\Compiler\Environment Filter env stack
fncall ( string $name, array $argValues ) : array | null Function caller
hueToRGB ( float $m1, float $m2, float $h ) : float Hue to RGB helper
isWithout ( integer $without, Leafo\ScssPhp\Block $block ) : boolean Filter WITH rules
spliceTree ( array $envs, Leafo\ScssPhp\Block $block, integer $without ) : array Splice parse tree

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

addFeature() 공개 메소드

Add feature
public addFeature ( string $name )
$name string

addImportPath() 공개 메소드

Add import path
public addImportPath ( string $path )
$path string

addParsedFile() 공개 메소드

Adds to list of parsed files
public addParsedFile ( string $path )
$path string

adjustHsl() 보호된 메소드

protected adjustHsl ( $color, $idx, $amount )

alterColor() 보호된 메소드

helper function for adjust_color, change_color, and scale_color
protected alterColor ( $args, $fn )

applyArguments() 보호된 메소드

Apply argument values per definition
protected applyArguments ( array $argDef, array $argValues )
$argDef array
$argValues array

assertColor() 공개 메소드

Assert value is a color
public assertColor ( array $value ) : array
$value array
리턴 array

assertList() 공개 메소드

Assert value is a list
public assertList ( array $value ) : array
$value array
리턴 array

assertMap() 공개 메소드

Assert value is a map
public assertMap ( array $value ) : array
$value array
리턴 array

assertNumber() 공개 메소드

Assert value is a number
public assertNumber ( array $value ) : integer | float
$value array
리턴 integer | float

callNativeFunction() 보호된 메소드

Call built-in and registered (PHP) functions
protected callNativeFunction ( string $name, array $args, array &$returnValue ) : boolean
$name string
$args array
$returnValue array
리턴 boolean Returns true if returnValue is set; otherwise, false

callScssFunction() 보호된 메소드

Call SCSS @function
protected callScssFunction ( string $name, $argValues, array &$returnValue ) : boolean
$name string
$returnValue array
리턴 boolean Returns true if returnValue is set; otherwise, false

coerceColor() 보호된 메소드

Coerce value to color
protected coerceColor ( array $value ) : array | null
$value array
리턴 array | null

coerceForExpression() 보호된 메소드

Coerce color for expression
protected coerceForExpression ( array $value ) : array | null
$value array
리턴 array | null

coerceList() 보호된 메소드

Coerce something to list
protected coerceList ( array $item, $delim = ',' ) : array
$item array
리턴 array

coerceMap() 보호된 메소드

Coerce something to map
protected coerceMap ( array $item ) : array
$item array
리턴 array

coercePercent() 보호된 메소드

Coerce value to a percentage
protected coercePercent ( array $value ) : integer | float
$value array
리턴 integer | float

coerceString() 보호된 메소드

Coerce value to string
protected coerceString ( array $value ) : array | null
$value array
리턴 array | null

collapseSelectors() 보호된 메소드

Collapse selectors
protected collapseSelectors ( array $selectors ) : string
$selectors array
리턴 string

combineSelectorSingle() 보호된 메소드

Combine selector single
protected combineSelectorSingle ( array $base, array $other ) : array
$base array
$other array
리턴 array

compile() 공개 메소드

Compile scss
public compile ( string $code, string $path = null ) : string
$code string
$path string
리턴 string

compileAtRoot() 보호된 메소드

Compile at-root
protected compileAtRoot ( Leafo\ScssPhp\Block $block )
$block Leafo\ScssPhp\Block

compileBlock() 보호된 메소드

A block is analogous to a CSS block in most cases. A single SCSS document is encapsulated in a block when parsed, but it does not have parent tags so all of its children appear on the root level when compiled. Blocks are made up of selectors and children. The children of a block are just all the blocks that are defined within. Compiling the block involves pushing a fresh environment on the stack, and iterating through the props, compiling each one.
또한 보기: Compiler::compileChild()
protected compileBlock ( Leafo\ScssPhp\Block $block )
$block Leafo\ScssPhp\Block

compileChild() 보호된 메소드

Compile child; returns a value to halt execution
protected compileChild ( array $child, Leafo\ScssPhp\Formatter\OutputBlock $out ) : array
$child array
$out Leafo\ScssPhp\Formatter\OutputBlock
리턴 array

compileChildren() 보호된 메소드

Compile children and return result
protected compileChildren ( array $stms, Leafo\ScssPhp\Formatter\OutputBlock $out ) : array
$stms array
$out Leafo\ScssPhp\Formatter\OutputBlock
리턴 array

compileChildrenNoReturn() 보호된 메소드

Compile children and throw exception if unexpected @return
protected compileChildrenNoReturn ( array $stms, Leafo\ScssPhp\Formatter\OutputBlock $out )
$stms array
$out Leafo\ScssPhp\Formatter\OutputBlock

compileComment() 보호된 메소드

Compile root level comment
protected compileComment ( array $block )
$block array

compileDirective() 보호된 메소드

Compile directive
protected compileDirective ( Leafo\ScssPhp\Block $block )
$block Leafo\ScssPhp\Block

compileImport() 보호된 메소드

Compile import; returns true if the value was something that could be imported
protected compileImport ( array $rawPath, array $out, boolean $once = false ) : boolean
$rawPath array
$out array
$once boolean
리턴 boolean

compileKeyframeBlock() 보호된 메소드

Compile keyframe block
protected compileKeyframeBlock ( Leafo\ScssPhp\Block $block, array $selectors )
$block Leafo\ScssPhp\Block
$selectors array

compileMedia() 보호된 메소드

Compile media
protected compileMedia ( Leafo\ScssPhp\Block $media )
$media Leafo\ScssPhp\Block

compileMediaQuery() 보호된 메소드

Compile media query
protected compileMediaQuery ( array $queryList ) : string
$queryList array
리턴 string

compileNestedBlock() 보호된 메소드

Compile nested block
protected compileNestedBlock ( Leafo\ScssPhp\Block $block, array $selectors )
$block Leafo\ScssPhp\Block
$selectors array

compileRoot() 보호된 메소드

Compile root
protected compileRoot ( Leafo\ScssPhp\Block $rootBlock )
$rootBlock Leafo\ScssPhp\Block

compileSelector() 보호된 메소드

Compile selector to string; self(&) should have been replaced by now
protected compileSelector ( array $selector ) : string
$selector array
리턴 string

compileSelectorPart() 보호된 메소드

Compile selector part
protected compileSelectorPart ( arary $piece ) : string
$piece arary
리턴 string

compileStringContent() 보호된 메소드

Compile string content
protected compileStringContent ( array $string ) : string
$string array
리턴 string

compileValue() 공개 메소드

Values in scssphp are typed by being wrapped in arrays, their format is typically: array(type, contents [, additional_contents]*) The input is expected to be reduced. This function will not work on things like expressions and variables.
public compileValue ( array $value ) : string
$value array
리턴 string

evalSelector() 보호된 메소드

Evaluate selector
protected evalSelector ( array $selector ) : array
$selector array
리턴 array

evalSelectorPart() 보호된 메소드

Evaluate selector part; replaces all the interpolates, stripping quotes
protected evalSelectorPart ( array $part ) : array
$part array
리턴 array

evalSelectors() 보호된 메소드

Evaluate selectors
protected evalSelectors ( array $selectors ) : array
$selectors array
리턴 array

expToString() 보호된 메소드

Reduce expression to string
protected expToString ( array $exp ) : array
$exp array
리턴 array

extractInterpolation() 보호된 메소드

Extract interpolation; it doesn't need to be recursive, compileValue will handle that
protected extractInterpolation ( array $list ) : array
$list array
리턴 array

extractRelationshipFromFragment() 보호된 메소드

When extracting the last portion of a selector we will be left with a fragment which may end with a direction relationship combinator. This method will extract the relationship fragment and return it along side the rest.
protected extractRelationshipFromFragment ( array $fragment ) : array
$fragment array The selector fragment maybe ending with a direction relationship combinator.
리턴 array The selector without the relationship fragment if any, the relationship fragment.

fileExists() 보호된 메소드

Does file exist?
protected fileExists ( string $name ) : boolean
$name string
리턴 boolean

findImport() 공개 메소드

Return the file path for an import url if it exists
public findImport ( string $url ) : string | null
$url string
리턴 string | null

fixColor() 보호된 메소드

Make sure a color's components don't go out of bounds
protected fixColor ( array $c ) : array
$c array
리턴 array

flattenList() 보호된 메소드

Flatten list
protected flattenList ( array $list ) : string
$list array
리턴 string

flattenSelectorSingle() 보호된 메소드

Flatten selector single; joins together .classes and #ids
protected flattenSelectorSingle ( array $single ) : array
$single array
리턴 array

flattenSelectors() 보호된 메소드

Flatten selectors
protected flattenSelectors ( Leafo\ScssPhp\Formatter\OutputBlock $block, string $parentKey = null )
$block Leafo\ScssPhp\Formatter\OutputBlock
$parentKey string

get() 공개 메소드

Get variable
public get ( string $name, boolean $shouldThrow = true, Leafo\ScssPhp\Compiler\Environment $env = null ) : mixed
$name string
$shouldThrow boolean
$env Leafo\ScssPhp\Compiler\Environment
리턴 mixed

getBuiltinFunction() 보호된 메소드

Get built-in function
protected getBuiltinFunction ( string $name ) : array
$name string Normalized name
리턴 array

getNormalizedNumbers() 보호된 메소드

Helper to normalize args containing numbers
protected getNormalizedNumbers ( array $args ) : array
$args array
리턴 array

getParsedFiles() 공개 메소드

Returns list of parsed files
public getParsedFiles ( ) : array
리턴 array

getStoreEnv() 보호된 메소드

Get store environment
protected getStoreEnv ( ) : Leafo\ScssPhp\Compiler\Environment
리턴 Leafo\ScssPhp\Compiler\Environment

getVariables() 공개 메소드

Returns list of variables
public getVariables ( ) : array
리턴 array

handleImportLoop() 보호된 메소드

Handle import loop
protected handleImportLoop ( string $name )
$name string

has() 보호된 메소드

Has variable?
protected has ( string $name, Leafo\ScssPhp\Compiler\Environment $env = null ) : boolean
$name string
$env Leafo\ScssPhp\Compiler\Environment
리턴 boolean

hasSelectorPlaceholder() 보호된 메소드

Has selector placeholder?
protected hasSelectorPlaceholder ( array $selector ) : boolean
$selector array
리턴 boolean

importFile() 보호된 메소드

Import file
protected importFile ( string $path, array $out )
$path string
$out array

injectVariables() 보호된 메소드

Inject variables
protected injectVariables ( array $args )
$args array

isImmediateRelationshipCombinator() 보호된 메소드

Is the value a direct relationship combinator?
protected isImmediateRelationshipCombinator ( string $value ) : boolean
$value string
리턴 boolean

isSelfExtend() 보호된 메소드

Is self extend?
protected isSelfExtend ( array $target, array $origin ) : boolean
$target array
$origin array
리턴 boolean

isTruthy() 보호된 메소드

Is truthy?
protected isTruthy ( array $value ) : array
$value array
리턴 array

joinSelectors() 보호된 메소드

Join selectors; looks for & to replace, or append parent before child
protected joinSelectors ( array $parent, array $child ) : array
$parent array
$child array
리턴 array

libAbs() 보호된 메소드

protected libAbs ( $args )

libAdjustColor() 보호된 메소드

protected libAdjustColor ( $args )

libAdjustHue() 보호된 메소드

protected libAdjustHue ( $args )

libAlpha() 보호된 메소드

protected libAlpha ( $args )

libAppend() 보호된 메소드

protected libAppend ( $args )

libBlue() 보호된 메소드

protected libBlue ( $args )

libCall() 보호된 메소드

..'];
protected libCall ( $args, $kwargs )

libCeil() 보호된 메소드

protected libCeil ( $args )

libChangeColor() 보호된 메소드

protected libChangeColor ( $args )

libComparable() 보호된 메소드

protected libComparable ( $args )

libComplement() 보호된 메소드

protected libComplement ( $args )

libCounter() 보호된 메소드

Workaround IE7's content counter bug.
protected libCounter ( array $args )
$args array

libDarken() 보호된 메소드

protected libDarken ( $args )

libDesaturate() 보호된 메소드

protected libDesaturate ( $args )

libFadeIn() 보호된 메소드

protected libFadeIn ( $args )

libFadeOut() 보호된 메소드

protected libFadeOut ( $args )

libFeatureExists() 보호된 메소드

protected libFeatureExists ( $args )

libFloor() 보호된 메소드

protected libFloor ( $args )

libFunctionExists() 보호된 메소드

protected libFunctionExists ( $args )

libGlobalVariableExists() 보호된 메소드

protected libGlobalVariableExists ( $args )

libGrayscale() 보호된 메소드

protected libGrayscale ( $args )

libGreen() 보호된 메소드

protected libGreen ( $args )

libHsl() 보호된 메소드

protected libHsl ( $args )

libHsla() 보호된 메소드

protected libHsla ( $args )

libHue() 보호된 메소드

protected libHue ( $args )

libIeHexStr() 보호된 메소드

protected libIeHexStr ( $args )

libIf() 보호된 메소드

protected libIf ( $args )

libIndex() 보호된 메소드

protected libIndex ( $args )

libInspect() 보호된 메소드

protected libInspect ( $args )

libInvert() 보호된 메소드

protected libInvert ( $args )

libJoin() 보호된 메소드

protected libJoin ( $args )

libKeywords() 보호된 메소드

protected libKeywords ( $args )

libLength() 보호된 메소드

protected libLength ( $args )

libLighten() 보호된 메소드

protected libLighten ( $args )

libLightness() 보호된 메소드

protected libLightness ( $args )

libListSeparator() 보호된 메소드

..'];
protected libListSeparator ( $args )

libMapGet() 보호된 메소드

protected libMapGet ( $args )

libMapHasKey() 보호된 메소드

protected libMapHasKey ( $args )

libMapKeys() 보호된 메소드

protected libMapKeys ( $args )

libMapMerge() 보호된 메소드

protected libMapMerge ( $args )

libMapRemove() 보호된 메소드

protected libMapRemove ( $args )

libMapValues() 보호된 메소드

protected libMapValues ( $args )

libMax() 보호된 메소드

protected libMax ( $args )

libMin() 보호된 메소드

protected libMin ( $args )

libMix() 보호된 메소드

protected libMix ( $args )

libMixinExists() 보호된 메소드

protected libMixinExists ( $args )

libNth() 보호된 메소드

protected libNth ( $args )

libOpacify() 보호된 메소드

protected libOpacify ( $args )

libOpacity() 보호된 메소드

protected libOpacity ( $args )

libPercentage() 보호된 메소드

protected libPercentage ( $args )

libQuote() 보호된 메소드

protected libQuote ( $args )

libRandom() 보호된 메소드

protected libRandom ( $args )

libRed() 보호된 메소드

protected libRed ( $args )

libRgb() 보호된 메소드

protected libRgb ( $args )

libRgba() 보호된 메소드

protected libRgba ( $args )

libRound() 보호된 메소드

protected libRound ( $args )

libSaturate() 보호된 메소드

protected libSaturate ( $args )

libSaturation() 보호된 메소드

protected libSaturation ( $args )

libScaleColor() 보호된 메소드

protected libScaleColor ( $args )

libSetNth() 보호된 메소드

protected libSetNth ( $args )

libStrIndex() 보호된 메소드

protected libStrIndex ( $args )

libStrInsert() 보호된 메소드

protected libStrInsert ( $args )

libStrLength() 보호된 메소드

protected libStrLength ( $args )

libStrSlice() 보호된 메소드

protected libStrSlice ( $args )

libToLowerCase() 보호된 메소드

protected libToLowerCase ( $args )

libToUpperCase() 보호된 메소드

protected libToUpperCase ( $args )

libTransparentize() 보호된 메소드

protected libTransparentize ( $args )

libTypeOf() 보호된 메소드

protected libTypeOf ( $args )

libUniqueId() 보호된 메소드

protected libUniqueId ( )

libUnit() 보호된 메소드

protected libUnit ( $args )

libUnitless() 보호된 메소드

protected libUnitless ( $args )

libUnquote() 보호된 메소드

protected libUnquote ( $args )

libVariableExists() 보호된 메소드

protected libVariableExists ( $args )

libZip() 보호된 메소드

protected libZip ( $args )

listSeparatorForJoin() 보호된 메소드

protected listSeparatorForJoin ( $list1, $sep )

makeOutputBlock() 보호된 메소드

Make output block
protected makeOutputBlock ( string $type, array $selectors = null ) : Leafo\ScssPhp\Formatter\OutputBlock
$type string
$selectors array
리턴 Leafo\ScssPhp\Formatter\OutputBlock

matchExtends() 보호된 메소드

Match extends
protected matchExtends ( array $selector, array &$out, integer $from, boolean $initial = true )
$selector array
$out array
$from integer
$initial boolean

matchExtendsSingle() 보호된 메소드

Match extends single
protected matchExtendsSingle ( array $rawSingle, array &$outOrigin ) : boolean
$rawSingle array
$outOrigin array
리턴 boolean

mediaParent() 보호된 메소드

Media parent
protected mediaParent ( Leafo\ScssPhp\Formatter\OutputBlock $scope ) : Leafo\ScssPhp\Formatter\OutputBlock
$scope Leafo\ScssPhp\Formatter\OutputBlock
리턴 Leafo\ScssPhp\Formatter\OutputBlock

mergeDirectRelationships() 보호된 메소드

protected mergeDirectRelationships ( $selectors1, $selectors2 )

mergeMediaTypes() 보호된 메소드

Merge media types
protected mergeMediaTypes ( array $type1, array $type2 ) : array | null
$type1 array
$type2 array
리턴 array | null

missingSelectors() 보호된 메소드

Report missing selectors
protected missingSelectors ( )

multiplyMedia() 보호된 메소드

Multiply media
protected multiplyMedia ( Leafo\ScssPhp\Compiler\Environment $env = null, array $childQueries = null ) : array
$env Leafo\ScssPhp\Compiler\Environment
$childQueries array
리턴 array

multiplySelectors() 보호된 메소드

Find the final set of selectors
protected multiplySelectors ( Leafo\ScssPhp\Compiler\Environment $env ) : array
$env Leafo\ScssPhp\Compiler\Environment
리턴 array

normalizeName() 보호된 메소드

Normalize name
protected normalizeName ( string $name ) : string
$name string
리턴 string

normalizeValue() 공개 메소드

Normalize value
public normalizeValue ( array $value ) : array
$value array
리턴 array

opAdd() 보호된 메소드

Add strings
protected opAdd ( array $left, array $right ) : array
$left array
$right array
리턴 array

opAddNumberNumber() 보호된 메소드

Add numbers
protected opAddNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opAnd() 보호된 메소드

Boolean and
protected opAnd ( array $left, array $right, boolean $shouldEval ) : array
$left array
$right array
$shouldEval boolean
리턴 array

opCmpNumberNumber() 보호된 메소드

Three-way comparison, aka spaceship operator
protected opCmpNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opColorColor() 보호된 메소드

Compare colors
protected opColorColor ( string $op, array $left, array $right ) : array
$op string
$left array
$right array
리턴 array

opColorNumber() 보호된 메소드

Compare color and number
protected opColorNumber ( string $op, array $left, array $right ) : array
$op string
$left array
$right array
리턴 array

opDivNumberNumber() 보호된 메소드

Divide numbers
protected opDivNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opEq() 보호된 메소드

Compare number1 == number2
protected opEq ( array $left, array $right ) : array
$left array
$right array
리턴 array

opGtNumberNumber() 보호된 메소드

Compare number1 > number2
protected opGtNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opGteNumberNumber() 보호된 메소드

Compare number1 >= number2
protected opGteNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opLtNumberNumber() 보호된 메소드

Compare number1 < number2
protected opLtNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opLteNumberNumber() 보호된 메소드

Compare number1 <= number2
protected opLteNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opModNumberNumber() 보호된 메소드

Mod numbers
protected opModNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opMulNumberNumber() 보호된 메소드

Multiply numbers
protected opMulNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

opNeq() 보호된 메소드

Compare number1 != number2
protected opNeq ( array $left, array $right ) : array
$left array
$right array
리턴 array

opNumberColor() 보호된 메소드

Compare number and color
protected opNumberColor ( string $op, array $left, array $right ) : array
$op string
$left array
$right array
리턴 array

opOr() 보호된 메소드

Boolean or
protected opOr ( array $left, array $right, boolean $shouldEval ) : array
$left array
$right array
$shouldEval boolean
리턴 array

opSubNumberNumber() 보호된 메소드

Subtract numbers
protected opSubNumberNumber ( array $left, array $right ) : array
$left array
$right array
리턴 array

parserFactory() 보호된 메소드

Instantiate parser
protected parserFactory ( string $path ) : Parser
$path string
리턴 Parser

popEnv() 보호된 메소드

Pop environment
protected popEnv ( )

pushEnv() 보호된 메소드

Push environment
protected pushEnv ( Leafo\ScssPhp\Block $block = null ) : Leafo\ScssPhp\Compiler\Environment
$block Leafo\ScssPhp\Block
리턴 Leafo\ScssPhp\Compiler\Environment

pushExtends() 보호된 메소드

Push extends
protected pushExtends ( array $target, array $origin, stdClass $block )
$target array
$origin array
$block stdClass

reduce() 보호된 메소드

Reduce value
protected reduce ( array $value, boolean $inExp = false ) : array
$value array
$inExp boolean
리턴 array

registerFunction() 공개 메소드

Register function
public registerFunction ( string $name, callable $func, array $prototype = null )
$name string
$func callable
$prototype array

set() 보호된 메소드

Set variable
protected set ( string $name, mixed $value, boolean $shadow = false, Leafo\ScssPhp\Compiler\Environment $env = null )
$name string
$value mixed
$shadow boolean
$env Leafo\ScssPhp\Compiler\Environment

setEncoding() 공개 메소드

Set encoding
public setEncoding ( string $encoding )
$encoding string

setExisting() 보호된 메소드

Set existing variable
protected setExisting ( string $name, mixed $value, Leafo\ScssPhp\Compiler\Environment $env )
$name string
$value mixed
$env Leafo\ScssPhp\Compiler\Environment

setFormatter() 공개 메소드

Set formatter
public setFormatter ( string $formatterName )
$formatterName string

setIgnoreErrors() 공개 메소드

Ignore errors?
public setIgnoreErrors ( boolean $ignoreErrors ) : Compiler
$ignoreErrors boolean
리턴 Compiler

setImportPaths() 공개 메소드

Set import paths
public setImportPaths ( string | array $path )
$path string | array

setLineNumberStyle() 공개 메소드

Set line number style
public setLineNumberStyle ( string $lineNumberStyle )
$lineNumberStyle string

setNumberPrecision() 공개 메소드

Set number precision
public setNumberPrecision ( integer $numberPrecision )
$numberPrecision integer

setRaw() 보호된 메소드

Set raw variable
protected setRaw ( string $name, mixed $value, Leafo\ScssPhp\Compiler\Environment $env )
$name string
$value mixed
$env Leafo\ScssPhp\Compiler\Environment

setVariables() 공개 메소드

Set variables
public setVariables ( array $variables )
$variables array

shouldEval() 보호된 메소드

Should $value cause its operand to eval
protected shouldEval ( array $value ) : boolean
$value array
리턴 boolean

sortArgs() 보호된 메소드

Sorts keyword arguments
protected sortArgs ( array $prototype, array $args ) : array
$prototype array
$args array
리턴 array

throwError() 공개 메소드

Throw error (exception)
public throwError ( string $msg )
$msg string Message with optional sprintf()-style vararg parameters

toBool() 공개 메소드

Cast to boolean
public toBool ( mixed $thing ) : array
$thing mixed
리턴 array

toHSL() 공개 메소드

Convert RGB to HSL
public toHSL ( integer $red, integer $green, integer $blue ) : array
$red integer
$green integer
$blue integer
리턴 array

toRGB() 공개 메소드

Convert HSL to RGB
public toRGB ( integer $hue, integer $saturation, integer $lightness ) : array
$hue integer H from 0 to 360
$saturation integer S from 0 to 100
$lightness integer L from 0 to 100
리턴 array

unregisterFunction() 공개 메소드

Unregister function
public unregisterFunction ( string $name )
$name string

unsetVariable() 공개 메소드

Unset variable
public unsetVariable ( string $name )
$name string

프로퍼티 상세

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

protected $charsetSeen

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

public static $defaultValue

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

public static $emptyList

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

public static $emptyMap

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

public static $emptyString

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

protected $encoding

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

protected $env

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

public static $false

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

protected $formatter

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

protected $importCache

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

protected $importPaths

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

protected $importedFiles

$libAbs 보호되어 있는 정적으로 프로퍼티

protected static $libAbs

$libAdjustColor 보호되어 있는 정적으로 프로퍼티

protected static $libAdjustColor

$libAdjustHue 보호되어 있는 정적으로 프로퍼티

protected static $libAdjustHue

$libAlpha 보호되어 있는 정적으로 프로퍼티

protected static $libAlpha

$libAppend 보호되어 있는 정적으로 프로퍼티

protected static $libAppend

$libBlue 보호되어 있는 정적으로 프로퍼티

protected static $libBlue

$libCeil 보호되어 있는 정적으로 프로퍼티

protected static $libCeil

$libChangeColor 보호되어 있는 정적으로 프로퍼티

protected static $libChangeColor

$libComparable 보호되어 있는 정적으로 프로퍼티

protected static $libComparable

$libComplement 보호되어 있는 정적으로 프로퍼티

protected static $libComplement

$libDarken 보호되어 있는 정적으로 프로퍼티

protected static $libDarken

$libDesaturate 보호되어 있는 정적으로 프로퍼티

protected static $libDesaturate

$libFadeIn 보호되어 있는 정적으로 프로퍼티

protected static $libFadeIn

$libFadeOut 보호되어 있는 정적으로 프로퍼티

protected static $libFadeOut

$libFeatureExists 보호되어 있는 정적으로 프로퍼티

protected static $libFeatureExists

$libFloor 보호되어 있는 정적으로 프로퍼티

protected static $libFloor

$libFunctionExists 보호되어 있는 정적으로 프로퍼티

protected static $libFunctionExists

$libGlobalVariableExists 보호되어 있는 정적으로 프로퍼티

protected static $libGlobalVariableExists

$libGrayscale 보호되어 있는 정적으로 프로퍼티

protected static $libGrayscale

$libGreen 보호되어 있는 정적으로 프로퍼티

protected static $libGreen

$libHsl 보호되어 있는 정적으로 프로퍼티

protected static $libHsl

$libHsla 보호되어 있는 정적으로 프로퍼티

protected static $libHsla

$libHue 보호되어 있는 정적으로 프로퍼티

protected static $libHue

$libIeHexStr 보호되어 있는 정적으로 프로퍼티

protected static $libIeHexStr

$libIf 보호되어 있는 정적으로 프로퍼티

protected static $libIf

$libIndex 보호되어 있는 정적으로 프로퍼티

protected static $libIndex

$libInspect 보호되어 있는 정적으로 프로퍼티

protected static $libInspect

$libInvert 보호되어 있는 정적으로 프로퍼티

protected static $libInvert

$libJoin 보호되어 있는 정적으로 프로퍼티

protected static $libJoin

$libKeywords 보호되어 있는 정적으로 프로퍼티

protected static $libKeywords

$libLength 보호되어 있는 정적으로 프로퍼티

protected static $libLength

$libLighten 보호되어 있는 정적으로 프로퍼티

protected static $libLighten

$libLightness 보호되어 있는 정적으로 프로퍼티

protected static $libLightness

$libMapGet 보호되어 있는 정적으로 프로퍼티

protected static $libMapGet

$libMapHasKey 보호되어 있는 정적으로 프로퍼티

protected static $libMapHasKey

$libMapKeys 보호되어 있는 정적으로 프로퍼티

protected static $libMapKeys

$libMapMerge 보호되어 있는 정적으로 프로퍼티

protected static $libMapMerge

$libMapRemove 보호되어 있는 정적으로 프로퍼티

protected static $libMapRemove

$libMapValues 보호되어 있는 정적으로 프로퍼티

protected static $libMapValues

$libMix 보호되어 있는 정적으로 프로퍼티

mix two colors
protected static $libMix

$libMixinExists 보호되어 있는 정적으로 프로퍼티

protected static $libMixinExists

$libNth 보호되어 있는 정적으로 프로퍼티

protected static $libNth

$libOpacify 보호되어 있는 정적으로 프로퍼티

increases opacity by amount
protected static $libOpacify

$libOpacity 보호되어 있는 정적으로 프로퍼티

protected static $libOpacity

$libPercentage 보호되어 있는 정적으로 프로퍼티

protected static $libPercentage

$libQuote 보호되어 있는 정적으로 프로퍼티

protected static $libQuote

$libRandom 보호되어 있는 정적으로 프로퍼티

protected static $libRandom

$libRed 보호되어 있는 정적으로 프로퍼티

protected static $libRed

$libRgb 보호되어 있는 정적으로 프로퍼티

protected static $libRgb

$libRgba 보호되어 있는 정적으로 프로퍼티

protected static $libRgba

$libRound 보호되어 있는 정적으로 프로퍼티

protected static $libRound

$libSaturate 보호되어 있는 정적으로 프로퍼티

protected static $libSaturate

$libSaturation 보호되어 있는 정적으로 프로퍼티

protected static $libSaturation

$libScaleColor 보호되어 있는 정적으로 프로퍼티

protected static $libScaleColor

$libSetNth 보호되어 있는 정적으로 프로퍼티

protected static $libSetNth

$libStrIndex 보호되어 있는 정적으로 프로퍼티

protected static $libStrIndex

$libStrInsert 보호되어 있는 정적으로 프로퍼티

protected static $libStrInsert

$libStrLength 보호되어 있는 정적으로 프로퍼티

protected static $libStrLength

$libStrSlice 보호되어 있는 정적으로 프로퍼티

protected static $libStrSlice

$libToLowerCase 보호되어 있는 정적으로 프로퍼티

protected static $libToLowerCase

$libToUpperCase 보호되어 있는 정적으로 프로퍼티

protected static $libToUpperCase

$libTransparentize 보호되어 있는 정적으로 프로퍼티

decreases opacity by amount
protected static $libTransparentize

$libTypeOf 보호되어 있는 정적으로 프로퍼티

protected static $libTypeOf

$libUnit 보호되어 있는 정적으로 프로퍼티

protected static $libUnit

$libUnitless 보호되어 있는 정적으로 프로퍼티

protected static $libUnitless

$libUnquote 보호되어 있는 정적으로 프로퍼티

protected static $libUnquote

$libVariableExists 보호되어 있는 정적으로 프로퍼티

protected static $libVariableExists

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

protected $lineNumberStyle

$namespaces 보호되어 있는 정적으로 프로퍼티

protected static array $namespaces
리턴 array

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

public static $null

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

public static $nullString

$operatorNames 보호되어 있는 정적으로 프로퍼티

protected static array $operatorNames
리턴 array

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

protected $registeredFeatures

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

protected $registeredVars

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

protected $rootBlock

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

protected $rootEnv

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

protected $scope

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

public static $selfSelector

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

protected $sourceNames

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

protected $storeEnv

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

public static $true

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

protected $userFunctions

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

public static $with

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

public static $without