public abstract class SimpleXMLNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected QuercusClass |
_cls |
protected SimpleView |
_view |
Constructor and Description |
---|
SimpleXMLNode(QuercusClass cls,
SimpleView view) |
Modifier and Type | Method and Description |
---|---|
int |
__count(Env env) |
Value |
__get(Env env,
Value indexV)
Implementation for getting the indices of this class.
|
Value |
__getField(Env env,
StringValue name)
Implementation for getting the fields of this class.
|
void |
__set(Env env,
StringValue nameV,
StringValue value)
Implementation for setting the indices of this class.
|
void |
__setField(Env env,
StringValue name,
Value value)
Implementation for setting the fields of this class.
|
StringValue |
__toString(Env env)
public string __toString()
|
void |
addAttribute(Env env,
StringValue nameV,
StringValue valueV,
java.lang.String namespace)
public void SimpleXMLElement::addAttribute ( string $name [, string $value [, string $namespace ]] )
|
SimpleXMLElement |
addChild(Env env,
StringValue nameV,
StringValue valueV,
java.lang.String namespace)
public SimpleXMLElement addChild( string $name [, string $value [, string $namespace ]] )
|
Value |
asXML(Env env,
Value filename)
public mixed SimpleXMLElement::asXML([ string $filename ])
|
Value |
attributes(Env env,
Value namespaceV,
boolean isPrefix)
public SimpleXMLElement SimpleXMLElement::attributes([ string $ns = NULL [, bool $is_prefix = false ]])
|
Value |
children(Env env,
Value namespaceV,
boolean isPrefix)
public SimpleXMLElement SimpleXMLElement::children([ string $ns [, bool $is_prefix = false ]])
|
ArrayValue |
getDocNamespaces(Env env,
boolean isRecursive,
boolean isFromRoot)
public array SimpleXMLElement::getDocNamespaces ([ bool $recursive = false [, bool $from_root = true ]] )
|
ArrayValue |
getNamespaces(Env env,
boolean isRecursive)
public array SimpleXMLElement::getNamespaces ([ bool $recursive = false ] )
|
protected QuercusClass |
getQuercusClass() |
void |
jsonEncode(Env env,
JsonEncodeContext context,
StringValue sb) |
boolean |
registerXPathNamespace(Env env,
java.lang.String prefix,
java.lang.String ns)
public bool SimpleXMLElement::registerXPathNamespace ( string $prefix , string $ns )
|
java.lang.String |
simplexml_getName()
public string getName()
|
protected Value |
wrapJava(Env env) |
Value |
xpath(Env env,
java.lang.String expression)
public array SimpleXMLElement::xpath( string $path )
|
protected final QuercusClass _cls
protected final SimpleView _view
public SimpleXMLNode(QuercusClass cls, SimpleView view)
public java.lang.String simplexml_getName()
public StringValue __toString(Env env)
public Value __getField(Env env, StringValue name)
$a->foo
public void __setField(Env env, StringValue name, Value value)
$a->foo = "hello"
public Value __get(Env env, Value indexV)
$a->foo[0]
public void __set(Env env, StringValue nameV, StringValue value)
$a->foo[0] = "hello"
public int __count(Env env)
public SimpleXMLElement addChild(Env env, StringValue nameV, StringValue valueV, java.lang.String namespace)
public void addAttribute(Env env, StringValue nameV, StringValue valueV, java.lang.String namespace)
public final Value asXML(Env env, Value filename)
public Value attributes(Env env, Value namespaceV, boolean isPrefix)
public Value children(Env env, Value namespaceV, boolean isPrefix)
public ArrayValue getNamespaces(Env env, boolean isRecursive)
public ArrayValue getDocNamespaces(Env env, boolean isRecursive, boolean isFromRoot)
public boolean registerXPathNamespace(Env env, java.lang.String prefix, java.lang.String ns)
public Value xpath(Env env, java.lang.String expression)
public void jsonEncode(Env env, JsonEncodeContext context, StringValue sb)
protected QuercusClass getQuercusClass()