com.caucho.quercus.env
Interface ArrayDelegate

All Known Implementing Classes:
ArrayAccessDelegate, FunctionArrayDelegate

public interface ArrayDelegate

A delegate that performs Array operations for Quercus objects.


Method Summary
 long count(ObjectValue qThis)
          Returns the array count
 Value get(ObjectValue qThis, Value key)
          Returns the value for the specified key.
 boolean isset(ObjectValue qThis, Value key)
          Returns true if the value is set
 Value put(ObjectValue qThis, Value value)
          Appends a value.
 Value put(ObjectValue qThis, Value key, Value value)
          Sets the value for the spoecified key.
 Value unset(ObjectValue qThis, Value key)
          Removes the value at the speified key.
 

Method Detail

get

Value get(ObjectValue qThis,
          Value key)
Returns the value for the specified key.


put

Value put(ObjectValue qThis,
          Value key,
          Value value)
Sets the value for the spoecified key.


put

Value put(ObjectValue qThis,
          Value value)
Appends a value.


isset

boolean isset(ObjectValue qThis,
              Value key)
Returns true if the value is set


unset

Value unset(ObjectValue qThis,
            Value key)
Removes the value at the speified key.


count

long count(ObjectValue qThis)
Returns the array count