PHP 클래스 SassMixinNode

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

공개 메소드들

메소드 설명
__construct ( object $token ) : SassMixinNode SassMixinDefinitionNode constructor.
isa ( object $token ) : boolean Returns a value indicating if the token represents this type of node.
parse ( SassContext $pcontext ) : array Parse this node.
resolveSelectors ( SassContext $context ) : array Resolves selectors.

메소드 상세

__construct() 공개 메소드

SassMixinDefinitionNode constructor.
public __construct ( object $token ) : SassMixinNode
$token object source token
리턴 SassMixinNode

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

parse() 공개 메소드

Set passed arguments and any optional arguments not passed to their defaults, then render the children of the mixin definition.
public parse ( SassContext $pcontext ) : array
$pcontext SassContext the context in which this node is parsed
리턴 array the parsed node

resolveSelectors() 공개 메소드

Interpolates SassScript in selectors and resolves any parent references or appends the parent selectors.
public resolveSelectors ( SassContext $context ) : array
$context SassContext the context in which this node is parsed
리턴 array