프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 ( ) |
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. |
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. |
public createElement ( string $text, string $nsUri = null ) | ||
$text | string | |
$nsUri | string | The namespace URI for the given element. |
public createNilElement ( string $text, string $value ) | ||
$text | string | |
$value | string |