WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
класс не описан

TranslatorInterface() WC 1.0

XPath expression translator interface.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.

Хуков нет.

Возвращает

Null. Ничего.

Использование

$TranslatorInterface = new TranslatorInterface();
// use class methods

Методы

  1. cssToXPath($cssExpr, $prefix = 'descendant-or-self::')
  2. selectorToXPath(SelectorNode $selector, $prefix = 'descendant-or-self::')

Код TranslatorInterface: woocommerce/vendor/symfony/css-selector/XPath/TranslatorInterface.php WC 4.3.1

<?php
interface TranslatorInterface
{
    /**
     * Translates a CSS selector to an XPath expression.
     *
     * @param string $cssExpr
     * @param string $prefix
     *
     * @return string
     */
    public function cssToXPath($cssExpr, $prefix = 'descendant-or-self::');

    /**
     * Translates a parsed selector node to an XPath expression.
     *
     * @param string $prefix
     *
     * @return string
     */
    public function selectorToXPath(SelectorNode $selector, $prefix = 'descendant-or-self::');
}