PHP Класс PhpCss\Ast\Visitor\Xpath

Наследование: extends Overload
Показать файл Открыть проект

Открытые методы

Метод Описание
__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 ( Sequence $sequence ) : boolean If here is already data in the buffer, add a separator before starting the next.
visitEnterSelectorSequenceGroup ( Group $group ) : boolean Validate the buffer before visiting a Ast\Selector\Group.
visitEnterSelectorSimplePseudoClass ( PseudoClass $pseudoClass )
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 ( ClassName $class ) : boolean Output the class selector to the buffer
visitSelectorSimpleId ( Id $id ) : boolean Output the class selector to the buffer
visitSelectorSimplePseudoClass ( PseudoClass $pseudoClass )
visitSelectorSimplePseudoClassLanguage ( Language $language )
visitSelectorSimplePseudoClassPosition ( Position $position )
visitSelectorSimplePseudoElement ( PseudoElement $pseudoElement )
visitSelectorSimpleType ( Type $type ) : boolean Output the type (element name) selector to the buffer
visitSelectorSimpleUniversal ( Universal $universal ) : boolean 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

Описание методов

__construct() публичный Метод

Create visitor and store mode options
public __construct ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX )
$options integer
$defaultPrefix string

__toString() публичный Метод

Return the collected selector string
public __toString ( )

clear() публичный Метод

Clear the visitor object to visit another selector group
public clear ( )

hasOption() публичный Метод

Read the status of an option
public hasOption ( $option ) : integer
$option
Результат integer

setOptions() публичный Метод

Validate and store the options.
public setOptions ( integer $options, string $defaultPrefix = self::DEFAULT_NAMESPACE_PREFIX )
$options integer
$defaultPrefix string

visitEnterSelectorSequence() публичный Метод

If here is already data in the buffer, add a separator before starting the next.
public visitEnterSelectorSequence ( Sequence $sequence ) : boolean
$sequence PhpCss\Ast\Selector\Sequence
Результат boolean

visitEnterSelectorSequenceGroup() публичный Метод

If the buffer already contains data, throw an exception.
public visitEnterSelectorSequenceGroup ( Group $group ) : boolean
$group PhpCss\Ast\Selector\Group
Результат boolean

visitEnterSelectorSimplePseudoClass() публичный Метод

public visitEnterSelectorSimplePseudoClass ( PseudoClass $pseudoClass )
$pseudoClass PhpCss\Ast\Selector\Simple\PseudoClass

visitLeaveSelectorSequence() публичный Метод

If the visitor is in the condition status, close it.
public visitLeaveSelectorSequence ( ) : boolean
Результат boolean

visitLeaveSelectorSimplePseudoClass() публичный Метод

visitSelectorCombinatorChild() публичный Метод

visitSelectorCombinatorDescendant() публичный Метод

visitSelectorCombinatorFollower() публичный Метод

visitSelectorCombinatorNext() публичный Метод

visitSelectorSimpleAttribute() публичный Метод

public visitSelectorSimpleAttribute ( PhpCss\Ast\Selector\Simple\Attribute $attribute )
$attribute PhpCss\Ast\Selector\Simple\Attribute

visitSelectorSimpleClassName() публичный Метод

Output the class selector to the buffer
public visitSelectorSimpleClassName ( ClassName $class ) : boolean
$class PhpCss\Ast\Selector\Simple\ClassName
Результат boolean

visitSelectorSimpleId() публичный Метод

Output the class selector to the buffer
public visitSelectorSimpleId ( Id $id ) : boolean
$id PhpCss\Ast\Selector\Simple\Id
Результат boolean

visitSelectorSimplePseudoClass() публичный Метод

public visitSelectorSimplePseudoClass ( PseudoClass $pseudoClass )
$pseudoClass PhpCss\Ast\Selector\Simple\PseudoClass

visitSelectorSimplePseudoClassLanguage() публичный Метод

public visitSelectorSimplePseudoClassLanguage ( Language $language )
$language PhpCss\Ast\Selector\Simple\PseudoClass\Language

visitSelectorSimplePseudoClassPosition() публичный Метод

public visitSelectorSimplePseudoClassPosition ( Position $position )
$position PhpCss\Ast\Selector\Simple\PseudoClass\Position

visitSelectorSimplePseudoElement() публичный Метод

public visitSelectorSimplePseudoElement ( PseudoElement $pseudoElement )
$pseudoElement PhpCss\Ast\Selector\Simple\PseudoElement

visitSelectorSimpleType() публичный Метод

Output the type (element name) selector to the buffer
public visitSelectorSimpleType ( Type $type ) : boolean
$type PhpCss\Ast\Selector\Simple\Type
Результат boolean

visitSelectorSimpleUniversal() публичный Метод

Output the universal type (* or xmlns|*) selector to the buffer
public visitSelectorSimpleUniversal ( Universal $universal ) : boolean
$universal PhpCss\Ast\Selector\Simple\Universal
Результат boolean