PHP Class FluidXml\FluidContext

Inheritance: implements fluidxml\FluidInterface, implements ArrayAccess, implements Iterator, use trait FluidAliasesTrait, use trait FluidSaveTrait, use trait NewableTrait, use trait ReservedCallTrait, use trait ReservedCallStaticTrait
ファイルを表示 Open project: servo-php/fluidxml Class Usage Examples

Public Methods

Method Description
__construct ( $document, $handler, $context )
__invoke ( $query )
__toString ( )
addCdata ( $text )
addChild ( $child, $optionals ) addChild($child, $value?, $attributes? = [], $switchContext? = false)
addComment ( $text )
addText ( $text )
appendSibling ( $sibling, $optionals )
array_ ( ) it is shadowed by the __call() method.
current ( ) \Iterator interface.
dom ( )
each ( callable $fn )
filter ( callable $fn )
html ( $strip = false )
key ( ) \Iterator interface.
length ( )
next ( ) \Iterator interface.
offsetExists ( $offset ) \ArrayAccess interface.
offsetGet ( $offset ) \ArrayAccess interface.
offsetSet ( $offset, $value ) \ArrayAccess interface.
offsetUnset ( $offset ) \ArrayAccess interface.
prependSibling ( $sibling, $optionals )
query ( $query )
remove ( $query )
rewind ( ) \Iterator interface.
setAttribute ( $name, $value = null ) setAttribute(['name' => 'value', .
setCdata ( $text )
setComment ( $text )
setText ( $text )
times ( $times, callable $fn = null )
valid ( ) \Iterator interface.
xml ( $strip = false )

Protected Methods

Method Description
callfn ( $fn, $args )
filterQueryResults ( &$results )
newContext ( &$context )
resolveQuery ( $query )

Method Details

__construct() public method

public __construct ( $document, $handler, $context )

__invoke() public method

public __invoke ( $query )

__toString() public method

public __toString ( )

addCdata() public method

public addCdata ( $text )

addChild() public method

addChild($child, $value?, $attributes? = [], $switchContext? = false)
public addChild ( $child, $optionals )

addComment() public method

public addComment ( $text )

addText() public method

public addText ( $text )

appendSibling() public method

public appendSibling ( $sibling, $optionals )

array_() public method

it is shadowed by the __call() method.
public array_ ( )

callfn() protected method

protected callfn ( $fn, $args )

current() public method

\Iterator interface.
public current ( )

dom() public method

public dom ( )

each() public method

public each ( callable $fn )
$fn callable

filter() public method

public filter ( callable $fn )
$fn callable

filterQueryResults() protected method

protected filterQueryResults ( &$results )

html() public method

public html ( $strip = false )

key() public method

\Iterator interface.
public key ( )

length() public method

public length ( )

newContext() protected method

protected newContext ( &$context )

next() public method

\Iterator interface.
public next ( )

offsetExists() public method

\ArrayAccess interface.
public offsetExists ( $offset )

offsetGet() public method

\ArrayAccess interface.
public offsetGet ( $offset )

offsetSet() public method

\ArrayAccess interface.
public offsetSet ( $offset, $value )

offsetUnset() public method

\ArrayAccess interface.
public offsetUnset ( $offset )

prependSibling() public method

public prependSibling ( $sibling, $optionals )

query() public method

public query ( $query )

remove() public method

public remove ( $query )

resolveQuery() protected method

protected resolveQuery ( $query )

rewind() public method

\Iterator interface.
public rewind ( )

setAttribute() public method

..])
public setAttribute ( $name, $value = null )

setCdata() public method

public setCdata ( $text )

setComment() public method

public setComment ( $text )

setText() public method

public setText ( $text )

times() public method

public times ( $times, callable $fn = null )
$fn callable

valid() public method

\Iterator interface.
public valid ( )

xml() public method

public xml ( $strip = false )