Метод | Описание | |
---|---|---|
__construct ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX ) | Create visitor and store mode options | |
__toString ( ) | Return the collected selector string | |
clear ( ) | Clear the visitor object to visit another selector group | |
hasOption ( $option ) : integer | Read the status of an option | |
setOptions ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX ) | Validate and store the options. | |
visitEnterSelectorSequence ( |
If here is already data in the buffer, add a separator before starting the next. | |
visitEnterSelectorSequenceGroup ( |
Validate the buffer before visiting a Ast\Selector\Group. | |
visitEnterSelectorSimplePseudoClass ( |
||
visitLeaveSelectorSequence ( ) : boolean | If the visitor is in the condition status, close it. | |
visitLeaveSelectorSimplePseudoClass ( ) | ||
visitSelectorCombinatorChild ( ) | ||
visitSelectorCombinatorDescendant ( ) | ||
visitSelectorCombinatorFollower ( ) | ||
visitSelectorCombinatorNext ( ) | ||
visitSelectorSimpleAttribute ( PhpCss\Ast\Selector\Simple\Attribute $attribute ) | ||
visitSelectorSimpleClassName ( |
Output the class selector to the buffer | |
visitSelectorSimpleId ( |
Output the class selector to the buffer | |
visitSelectorSimplePseudoClass ( |
||
visitSelectorSimplePseudoClassLanguage ( |
||
visitSelectorSimplePseudoClassPosition ( |
||
visitSelectorSimplePseudoElement ( |
||
visitSelectorSimpleType ( |
Output the type (element name) selector to the buffer | |
visitSelectorSimpleUniversal ( |
Output the universal type (* or xmlns|*) selector to the buffer |
Метод | Описание | |
---|---|---|
add ( string $string ) | Add a string to the buffer | |
addCondition ( $condition ) | prepare buffer to add a condition to the xpath expression | |
endConditions ( ) | end condition if in condition status | |
quoteLiteral ( string $literal ) : string | Quote literal if needed | |
setElement ( $element ) | ||
status ( null | integer $status = NULL ) : integer | Get/Set the current visiting status | |
strtolower ( $string ) : string | Use unicode aware strtolower if available |
public __construct ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX ) | ||
$options | integer | |
$defaultPrefix | string |
public setOptions ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX ) | ||
$options | integer | |
$defaultPrefix | string |
public visitEnterSelectorSequence ( |
||
$sequence | ||
Результат | boolean |
public visitEnterSelectorSequenceGroup ( |
||
$group | ||
Результат | boolean |
public visitEnterSelectorSimplePseudoClass ( |
||
$pseudoClass |
public visitLeaveSelectorSequence ( ) : boolean | ||
Результат | boolean |
public visitLeaveSelectorSimplePseudoClass ( ) |
public visitSelectorSimpleAttribute ( PhpCss\Ast\Selector\Simple\Attribute $attribute ) | ||
$attribute | PhpCss\Ast\Selector\Simple\Attribute |
public visitSelectorSimpleClassName ( |
||
$class | ||
Результат | boolean |
public visitSelectorSimpleId ( |
||
$id | ||
Результат | boolean |
public visitSelectorSimplePseudoClass ( |
||
$pseudoClass |
public visitSelectorSimplePseudoClassLanguage ( |
||
$language |
public visitSelectorSimplePseudoClassPosition ( |
||
$position |
public visitSelectorSimplePseudoElement ( |
||
$pseudoElement |
public visitSelectorSimpleType ( |
||
$type | ||
Результат | boolean |
public visitSelectorSimpleUniversal ( |
||
$universal | ||
Результат | boolean |