symfony API

sfDomCssSelector Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfDomCssSelector allows to navigate a DOM with CSS selector.

Method Summary

Method Details

  • count ()

    Returns the number of matching nodes (implements Countable).

  • (mixed) current ()

    Escapes and return the current value (as required by the Iterator interface).

    returns The escaped value

  • getElements ()

  • getElementsByTagName ()

  • getElementsForNode ()

  • getNode ()

  • getNodes ()

  • getValue ()

  • getValues ()

  • (string) key ()

    Get the key associated with the current value (as required by the Iterator interface).

    returns The key

  • matchAll ()

  • matchCustomSelector ()

  • matchMultipleCustomSelectors ()

  • matchSingle ()

  • next ()

    Moves to the next element (as required by the Iterator interface).

  • nth ()

  • rewind ()

    Reset the array to the beginning (as required for the Iterator interface).

  • split_custom_selector ()

  • tokenize ()

  • tokenize_custom_selector ()

  • tokenize_selectors ()

  • tokenize_selector_name ()

  • (bool) valid ()

    Returns true if the current element is valid (as required by the Iterator interface).


    The current element will not be valid if {@link next()} has fallen off the
    end of the array or if there are no elements in the array and {@link
    rewind()} was called.

    returns The validity of the current element; true if it is valid

  • __construct ()