PHP Class pQuery, pquery

Afficher le fichier Open project: tburry/pquery Class Usage Examples

Protected Properties

Свойство Type Description
$nodes pQuery\IQuery[]

Méthodes publiques

Méthode Description
__construct ( $nodes = [] ) Methods ///
addClass ( $classname )
after ( $content )
append ( $content )
attr ( $name, $value = null )
before ( $content )
clear ( )
count ( ) : integer Get the count of matched elements.
getIterator ( ) }
hasClass ( $classname )
html ( $value = null )
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
parseFile ( string $path, resource $context = null ) : pQuery\DomNode Query a file or url.
parseStr ( string $html ) : pQuery\DomNode Query a string of html.
prepend ( $content = null )
prop ( $name, $value = null )
remove ( $selector = null )
removeAttr ( $name )
removeClass ( $classname )
replaceWith ( $content )
tagName ( $value = null )
text ( $value = null )
toggleClass ( $classname, $switch = null )
unwrap ( )
val ( $value = null )
wrap ( $wrapping_element )
wrapInner ( $wrapping_element )

Method Details

__construct() public méthode

Methods ///
public __construct ( $nodes = [] )

addClass() public méthode

public addClass ( $classname )

after() public méthode

public after ( $content )

append() public méthode

public append ( $content )

attr() public méthode

public attr ( $name, $value = null )

before() public méthode

public before ( $content )

clear() public méthode

public clear ( )

count() public méthode

Get the count of matched elements.
public count ( ) : integer
Résultat integer Returns the count of matched elements.

getIterator() public méthode

}
public getIterator ( )

hasClass() public méthode

public hasClass ( $classname )

html() public méthode

public html ( $value = null )

offsetExists() public méthode

public offsetExists ( $offset )

offsetGet() public méthode

public offsetGet ( $offset )

offsetSet() public méthode

public offsetSet ( $offset, $value )

offsetUnset() public méthode

public offsetUnset ( $offset )

parseFile() public static méthode

Query a file or url.
public static parseFile ( string $path, resource $context = null ) : pQuery\DomNode
$path string The path to the url.
$context resource A context suitable to be passed into {@link file_get_contents}
Résultat pQuery\DomNode Returns the root dom node for the html file.

parseStr() public static méthode

Query a string of html.
public static parseStr ( string $html ) : pQuery\DomNode
$html string
Résultat pQuery\DomNode Returns the root dom node for the html string.

prepend() public méthode

public prepend ( $content = null )

prop() public méthode

public prop ( $name, $value = null )

remove() public méthode

public remove ( $selector = null )

removeAttr() public méthode

public removeAttr ( $name )

removeClass() public méthode

public removeClass ( $classname )

replaceWith() public méthode

public replaceWith ( $content )

tagName() public méthode

public tagName ( $value = null )

text() public méthode

public text ( $value = null )

toggleClass() public méthode

public toggleClass ( $classname, $switch = null )

unwrap() public méthode

public unwrap ( )

val() public méthode

public val ( $value = null )

wrap() public méthode

public wrap ( $wrapping_element )

wrapInner() public méthode

public wrapInner ( $wrapping_element )

Property Details

$nodes protected_oe property

protected IQuery[],pQuery $nodes
Résultat pQuery\IQuery[]