PHP 클래스 QueryPath\Extension\QPXML

또한 보기: QueryPath::Extension
또한 보기: QPXML
저자: M Butcher ([email protected])
저자: Xander Guzman ([email protected])
상속: implements QueryPath\Extension
파일 보기 프로젝트 열기: microweber/microweber

보호된 프로퍼티들

프로퍼티 타입 설명
$qp

공개 메소드들

메소드 설명
__construct ( QueryPath\Query $qp )
appendElement ( string $text ) Append an element.
cdata ( string $text = null ) : mixed Get or set a CDATA section.
comment ( string $text = null ) : mixed Get or set a comment.
createElement ( string $text, string $nsUri = null ) Create an element with the given namespace.
createNilElement ( string $text, string $value ) Create a NIL element.
pi ( $prefix = null, $text = null ) Get or set a processor instruction.
schema ( $file )
toXml ( )

메소드 상세

__construct() 공개 메소드

public __construct ( QueryPath\Query $qp )
$qp QueryPath\Query

appendElement() 공개 메소드

Append an element.
public appendElement ( string $text )
$text string

cdata() 공개 메소드

If this is given text, it will create a CDATA section in each matched element, setting that item's value to $text. If no parameter is passed in, this will return the first CDATA section that it finds in the matched elements.
또한 보기: comment()
또한 보기: QueryPath::text()
또한 보기: QueryPath::html()
public cdata ( string $text = null ) : mixed
$text string The text data to insert into the current matches. If this is NULL, then the first CDATA will be returned.
리턴 mixed If $text is not NULL, this will return a {@link QueryPath}. Otherwise, it will return a string. If no CDATA is found, this will return NULL.

comment() 공개 메소드

This function is used to get or set comments in an XML or HTML document. If a $text value is passed in (and is not NULL), then this will add a comment (with the value $text) to every match in the set. If no text is passed in, this will return the first comment in the set of matches. If no comments are found, NULL will be returned.
또한 보기: cdata()
public comment ( string $text = null ) : mixed
$text string The text of the comment. If set, a new comment will be created in every item wrapped by the current {@link QueryPath}.
리턴 mixed If $text is set, this will return a {@link QueryPath}. If no text is set, this will search for a comment and attempt to return the string value of the first comment it finds. If no comment is found, NULL will be returned.

createElement() 공개 메소드

Create an element with the given namespace.
public createElement ( string $text, string $nsUri = null )
$text string
$nsUri string The namespace URI for the given element.

createNilElement() 공개 메소드

Create a NIL element.
public createNilElement ( string $text, string $value )
$text string
$value string

pi() 공개 메소드

Get or set a processor instruction.
public pi ( $prefix = null, $text = null )

schema() 공개 메소드

public schema ( $file )

toXml() 공개 메소드

public toXml ( )

프로퍼티 상세

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

protected $qp