메소드 | 설명 | |
---|---|---|
__construct ( object $token ) : SassRuleNode | SassRuleNode constructor. | |
addSelectors ( string $selectors, boolean $explode = true ) | Adds selector(s) to the rule. | |
extend ( ) | Extend this nodes selectors $extendee is the subject of the @extend directive $extender is the selector that contains the @extend directive $selector a selector or selector sequence that is to be extended | |
getIsContinued ( ) : boolean | Returns a value indicating if the selectors for this rule are to be continued. | |
getSelectors ( ) : array | Returns the selectors | |
isPlaceholder ( $selector ) | ||
parse ( SassContext $context ) : array | Parse this node and its children into static nodes. | |
render ( ) : string | Render this node and its children to CSS. | |
resolveSelectors ( SassContext $context ) : array | Resolves selectors. |
메소드 | 설명 | |
---|---|---|
getParentSelectors ( mixed $context ) : array | Returns the parent selector(s) for this node. |
메소드 | 설명 | |
---|---|---|
explode ( string $string ) : array | Explodes a string of selectors into an array. | |
hasParentReference ( string $selector ) : boolean | Determines if there is a parent reference in the selector | |
isPsuedo ( string $selector ) : boolean | Tests whether the selector is a psuedo selector | |
isSequence ( string $selector ) : boolean | Tests whether the selector is a sequence selector | |
mergeSequence ( string $extender, string $extendee, string $selector ) : array | Merges selector sequences | |
parentReferencePos ( string $selector ) : mixed | Returns the position of the first parent reference in the selector. | |
resolveParentReferences ( string $selector, mixed $context ) : string | Resolves parent references in the selector |
public __construct ( object $token ) : SassRuleNode | ||
$token | object | source token |
리턴 | SassRuleNode |
public addSelectors ( string $selectors, boolean $explode = true ) | ||
$selectors | string | selector |
$explode | boolean |
public extend ( ) |
public getIsContinued ( ) : boolean | ||
리턴 | boolean | rue if the selectors for this rule are to be continued false if not |
protected getParentSelectors ( mixed $context ) : array | ||
$context | mixed | |
리턴 | array | the parent selector for this node |
public resolveSelectors ( SassContext $context ) : array | ||
$context | SassContext | the context in which this node is parsed Change: 7/Dec/11 - change to make selector ordering conform to Ruby compiler. |
리턴 | array |