PHP 클래스 pQuery, pquery

파일 보기 프로젝트 열기: tburry/pquery 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$nodes pQuery\IQuery[]

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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

addClass() 공개 메소드

public addClass ( $classname )

after() 공개 메소드

public after ( $content )

append() 공개 메소드

public append ( $content )

attr() 공개 메소드

public attr ( $name, $value = null )

before() 공개 메소드

public before ( $content )

clear() 공개 메소드

public clear ( )

count() 공개 메소드

Get the count of matched elements.
public count ( ) : integer
리턴 integer Returns the count of matched elements.

getIterator() 공개 메소드

}
public getIterator ( )

hasClass() 공개 메소드

public hasClass ( $classname )

html() 공개 메소드

public html ( $value = null )

offsetExists() 공개 메소드

public offsetExists ( $offset )

offsetGet() 공개 메소드

public offsetGet ( $offset )

offsetSet() 공개 메소드

public offsetSet ( $offset, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $offset )

parseFile() 공개 정적인 메소드

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}
리턴 pQuery\DomNode Returns the root dom node for the html file.

parseStr() 공개 정적인 메소드

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

prepend() 공개 메소드

public prepend ( $content = null )

prop() 공개 메소드

public prop ( $name, $value = null )

remove() 공개 메소드

public remove ( $selector = null )

removeAttr() 공개 메소드

public removeAttr ( $name )

removeClass() 공개 메소드

public removeClass ( $classname )

replaceWith() 공개 메소드

public replaceWith ( $content )

tagName() 공개 메소드

public tagName ( $value = null )

text() 공개 메소드

public text ( $value = null )

toggleClass() 공개 메소드

public toggleClass ( $classname, $switch = null )

unwrap() 공개 메소드

public unwrap ( )

val() 공개 메소드

public val ( $value = null )

wrap() 공개 메소드

public wrap ( $wrapping_element )

wrapInner() 공개 메소드

public wrapInner ( $wrapping_element )

프로퍼티 상세

$nodes 보호되어 있는 프로퍼티

protected IQuery[],pQuery $nodes
리턴 pQuery\IQuery[]