PHP 클래스 SassPropertyNode

Represents a CSS property.
상속: extends SassNode
파일 보기 프로젝트 열기: richthegeek/phpsass 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$important
$name property name
$psuedoSelectors
$value property value or expression to evaluate

공개 메소드들

메소드 설명
__construct ( object $token, string $syntax = 'new' ) : SassPropertyNode SassPropertyNode constructor.
getName ( ) : string Returns the name of this property.
getNamespace ( ) : string Returns the namespace for this node
getValue ( ) : string Returns the parsed value of this property.
inNamespace ( ) : boolean Returns a value indicating if this node is in a namespace
isPseudoSelector ( string $string ) : boolean Returns a value indicating if the string starts with a pseudo selector.
isa ( object $token ) : boolean Returns a value indicating if the token represents this type of node.
match ( object $token, string $syntax ) : array Returns the matches for this type of node.
parse ( SassContext $context ) : array Parse this node.
render ( ) : string Render this node.

메소드 상세

__construct() 공개 메소드

SassPropertyNode constructor.
public __construct ( object $token, string $syntax = 'new' ) : SassPropertyNode
$token object source token
$syntax string property syntax
리턴 SassPropertyNode

getName() 공개 메소드

If the property is in a namespace the namespace is prepended
public getName ( ) : string
리턴 string the name of this property

getNamespace() 공개 메소드

Returns the namespace for this node
public getNamespace ( ) : string
리턴 string the namespace for this node

getValue() 공개 메소드

Returns the parsed value of this property.
public getValue ( ) : string
리턴 string the parsed value of this property

inNamespace() 공개 메소드

Returns a value indicating if this node is in a namespace
public inNamespace ( ) : boolean
리턴 boolean true if this node is in a property namespace, false if not

isPseudoSelector() 공개 정적인 메소드

This is used to reject pseudo selectors as property values as, for example, "a:hover" and "text-decoration:underline" look the same to the property match regex. It will also match interpolation to allow for constructs such as content:#{$pos}
또한 보기: isa()
public static isPseudoSelector ( string $string ) : boolean
$string string the string to test
리턴 boolean true if the string starts with a pseudo selector, false if not

isa() 공개 정적인 메소드

Returns a value indicating if the token represents this type of node.
public static isa ( object $token ) : boolean
$token object token
리턴 boolean true if the token represents this type of node, false if not

match() 공개 정적인 메소드

Returns the matches for this type of node.
public static match ( object $token, string $syntax ) : array
$token object
$syntax string the property syntax being used
리턴 array matches

parse() 공개 메소드

If the node is a property namespace return all parsed child nodes. If not return the parsed version of this node.
public parse ( SassContext $context ) : array
$context SassContext the context in which this node is parsed
리턴 array the parsed node

render() 공개 메소드

Render this node.
public render ( ) : string
리턴 string the rendered node

프로퍼티 상세

$important 공개적으로 프로퍼티

public $important

$name 공개적으로 프로퍼티

property name
public $name

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

public static $psuedoSelectors

$value 공개적으로 프로퍼티

property value or expression to evaluate
public $value