StudipArrayObject
This ArrayObject is a rewrite of the implementation to fix issues with php's implementation of ArrayObject regarding cyclic references based on Zend\Stdlib\ArrayObject\PhpReferenceCompatibility
- Author
 - André Noack noack.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e
 
Zend Framework (http://framework.zend.com/)
for the canonical source repository  Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)  http://framework.zend.com/license/new-bsd New BSD License 
 
◆ __construct()
      
        
          | __construct  | 
          ( | 
            | 
          $input = [],  | 
        
        
           | 
           | 
            | 
          $flags = self::STD_PROP_LIST,  | 
        
        
           | 
           | 
            | 
          $iteratorClass = 'ArrayIterator'  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor
- Parameters
 - 
  
    | array | $input |  | 
    | int | $flags |  | 
    | string | $iteratorClass |  | 
  
   
Reimplemented in MultiDimArrayObject.
 
 
◆ __get()
Returns the value at the specified key
- Parameters
 - 
  
  
 
- Returns
 - mixed 
 
 
 
◆ __isset()
Returns whether the requested key exists
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
 
 
◆ __set()
Sets the value at the specified key to value
- Parameters
 - 
  
  
 
- Returns
 - void 
 
 
 
◆ __unset()
Unsets the value at the specified key
- Parameters
 - 
  
  
 
- Returns
 - void 
 
 
 
◆ append()
◆ asort()
Sort the entries by value
- Returns
 - void 
 
 
 
◆ count()
Get the number of public properties in the ArrayObject
- Returns
 - int 
 
 
 
◆ exchangeArray()
◆ getArrayCopy()
◆ getFlags()
Gets the behavior flags.
- Returns
 - int 
 
 
 
◆ getIterator()
Create a new iterator from an ArrayObject instance
- Returns
 - \Iterator 
 
Reimplemented in MultiDimArrayObject.
 
 
◆ getIteratorClass()
Gets the iterator classname for the ArrayObject.
- Returns
 - string 
 
 
 
◆ ksort()
Sort the entries by key
- Returns
 - void 
 
 
 
◆ natcasesort()
Sort an array using a case insensitive "natural order" algorithm
- Returns
 - void 
 
 
 
◆ natsort()
Sort entries using a "natural order" algorithm
- Returns
 - void 
 
 
 
◆ offsetExists()
Returns whether the requested key exists
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
 
 
◆ offsetGet()
Returns the value at the specified key
- Parameters
 - 
  
  
 
- Returns
 - mixed 
 
 
 
◆ offsetSet()
      
        
          | offsetSet  | 
          ( | 
            | 
          $key,  | 
        
        
           | 
           | 
            | 
          $value  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ offsetUnset()
Unsets the value at the specified key
- Parameters
 - 
  
  
 
- Returns
 - void 
 
Reimplemented in SimpleCollection.
 
 
◆ serialize()
Serialize an ArrayObject
- Returns
 - string 
 
 
 
◆ setFlags()
Sets the behavior flags
- Parameters
 - 
  
  
 
- Returns
 - void 
 
 
 
◆ setIteratorClass()
      
        
          | setIteratorClass  | 
          ( | 
            | 
          $class | ) | 
           | 
        
      
 
Sets the iterator classname for the ArrayObject
- Parameters
 - 
  
  
 
- Returns
 - void 
 
 
 
◆ uasort()
Sort the entries with a user-defined comparison function and maintain key association
- Parameters
 - 
  
  
 
- Returns
 - void 
 
 
 
◆ uksort()
Sort the entries by keys using a user-defined comparison function
- Parameters
 - 
  
  
 
- Returns
 - void 
 
 
 
◆ unserialize()
Unserialize an ArrayObject
- Parameters
 - 
  
  
 
- Returns
 - void 
 
 
 
◆ validateKeyUsage()
Validates whether the given key is a protected property.
- Parameters
 - 
  
    | string | $key | The key to validate  | 
  
   
- Exceptions
 - 
  
    | InvalidArgumentException | when key is invalid  | 
  
   
 
 
◆ $flag
◆ $iteratorClass
◆ $protectedProperties
◆ $storage
◆ ARRAY_AS_PROPS
Entries can be accessed as properties (read and write). 
 
 
◆ STD_PROP_LIST
Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.). 
 
 
The documentation for this class was generated from the following file: