public class SplObjectStorage extends java.lang.Object implements ArrayAccess, Countable, Iterator, Serializable
SERIALIZE, UNSERIALIZE
Constructor and Description |
---|
SplObjectStorage() |
Modifier and Type | Method and Description |
---|---|
void |
addAll(Env env,
SplObjectStorage storage) |
void |
attach(Env env,
Value obj,
Value value) |
boolean |
contains(Env env,
Value obj) |
int |
count(Env env) |
Value |
current(Env env)
Returns the current value.
|
void |
detach(Env env,
Value obj) |
StringValue |
getHash(Env env,
Value obj) |
Value |
getInfo() |
Value |
key(Env env)
Returns the current key.
|
void |
next(Env env)
Advances to the next row.
|
boolean |
offsetExists(Env env,
Value offset) |
Value |
offsetGet(Env env,
Value obj) |
Value |
offsetSet(Env env,
Value obj,
Value value) |
Value |
offsetUnset(Env env,
Value obj) |
void |
removeAll(Env env,
SplObjectStorage storage) |
void |
removeAllExcept(Env env,
SplObjectStorage storage) |
void |
rewind(Env env)
Rewinds the iterator so it is at the first row.
|
StringValue |
serialize(Env env) |
void |
setInfo(Value value) |
void |
unserialize(Env env,
StringValue str) |
boolean |
valid(Env env)
Returns true if the iterator currently points to a valid row.
|
void |
varDumpImpl(Env env,
Value obj,
WriteStream out,
int depth,
java.util.IdentityHashMap<Value,java.lang.String> valueSet) |
public void addAll(Env env, SplObjectStorage storage)
public boolean offsetExists(Env env, Value offset)
offsetExists
in interface ArrayAccess
public Value offsetSet(Env env, Value obj, Value value)
offsetSet
in interface ArrayAccess
public Value offsetGet(Env env, Value obj)
offsetGet
in interface ArrayAccess
public Value offsetUnset(Env env, Value obj)
offsetUnset
in interface ArrayAccess
public Value current(Env env)
Iterator
public void next(Env env)
Iterator
public void rewind(Env env)
Iterator
public boolean valid(Env env)
Iterator
public StringValue getHash(Env env, Value obj)
public Value getInfo()
public void setInfo(Value value)
public void removeAll(Env env, SplObjectStorage storage)
public void removeAllExcept(Env env, SplObjectStorage storage)
public StringValue serialize(Env env)
serialize
in interface Serializable
public void unserialize(Env env, StringValue str)
unserialize
in interface Serializable
public void varDumpImpl(Env env, Value obj, WriteStream out, int depth, java.util.IdentityHashMap<Value,java.lang.String> valueSet) throws java.io.IOException
java.io.IOException