Stud.IP  3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
StudipArrayObject Class Reference
Inheritance diagram for StudipArrayObject:
Inheritance graph
Collaboration diagram for StudipArrayObject:
Collaboration graph

Public Member Functions

 __construct ($input=array(), $flags=self::STD_PROP_LIST, $iteratorClass= 'ArrayIterator')
 __isset ($key)
 __set ($key, $value)
 __unset ($key)
 __get ($key)
 append ($value)
 asort ()
 count ()
 exchangeArray ($data)
 getArrayCopy ()
 getFlags ()
 getIterator ()
 getIteratorClass ()
 ksort ()
 natcasesort ()
 natsort ()
 offsetExists ($key)
 offsetGet ($key)
 offsetSet ($key, $value)
 offsetUnset ($key)
 serialize ()
 setFlags ($flags)
 setIteratorClass ($class)
 uasort ($function)
 uksort ($function)
 unserialize ($data)

Data Fields

const STD_PROP_LIST = 1
const ARRAY_AS_PROPS = 2

Protected Attributes

 $storage
 $flag
 $iteratorClass
 $protectedProperties

Detailed Description

StudipArrayObject

This ArrayObject is a rewrite of the implementation to fix issues with php's implementation of ArrayObject regarding cyclic references based on Zend

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

Constructor & Destructor Documentation

__construct (   $input = array(),
  $flags = self::STD_PROP_LIST,
  $iteratorClass = 'ArrayIterator' 
)

Constructor

Parameters
array$input
int$flags
string$iteratorClass

Reimplemented in MultiDimArrayObject.

Here is the call graph for this function:

Member Function Documentation

__get (   $key)

Returns the value at the specified key

Parameters
mixed$key
Returns
mixed

Here is the call graph for this function:

__isset (   $key)

Returns whether the requested key exists

Parameters
mixed$key
Returns
bool

Here is the call graph for this function:

__set (   $key,
  $value 
)

Sets the value at the specified key to value

Parameters
mixed$key
mixed$value
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

__unset (   $key)

Unsets the value at the specified key

Parameters
mixed$key
Returns
void

Here is the call graph for this function:

append (   $value)

Appends the value

Parameters
mixed$value
Returns
void

Reimplemented in SimpleCollection, and MultiDimArrayObject.

Here is the caller graph for this function:

asort ( )

Sort the entries by value

Returns
void
count ( )

Get the number of public properties in the ArrayObject

Returns
int

Here is the caller graph for this function:

exchangeArray (   $data)

Exchange the array for another one.

Parameters
array | ArrayObject$data
Returns
array

Reimplemented in MultiDimArrayObject.

Here is the caller graph for this function:

getArrayCopy ( )

Creates a copy of the ArrayObject.

Returns
array

Reimplemented in MultiDimArrayObject.

Here is the caller graph for this function:

getFlags ( )

Gets the behavior flags.

Returns
int

Here is the caller graph for this function:

getIterator ( )

Create a new iterator from an ArrayObject instance

Returns

Reimplemented in MultiDimArrayObject.

getIteratorClass ( )

Gets the iterator classname for the ArrayObject.

Returns
string

Here is the caller graph for this function:

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 (   $key)

Returns whether the requested key exists

Parameters
mixed$key
Returns
bool

Here is the caller graph for this function:

offsetGet (   $key)

Returns the value at the specified key

Parameters
mixed$key
Returns
mixed

Here is the call graph for this function:

Here is the caller graph for this function:

offsetSet (   $key,
  $value 
)

Sets the value at the specified key to value

Parameters
mixed$key
mixed$value
Returns
void

Reimplemented in SimpleCollection, MultiDimArrayObject, and SimpleORMapCollection.

Here is the call graph for this function:

Here is the caller graph for this function:

offsetUnset (   $key)

Unsets the value at the specified key

Parameters
mixed$key
Returns
void

Reimplemented in SimpleCollection.

Here is the call graph for this function:

Here is the caller graph for this function:

serialize ( )

Serialize an ArrayObject

Returns
string

Here is the caller graph for this function:

setFlags (   $flags)

Sets the behavior flags

Parameters
int$flags
Returns
void

Here is the caller graph for this function:

setIteratorClass (   $class)

Sets the iterator classname for the ArrayObject

Parameters
string$class
Returns
void

Here is the caller graph for this function:

uasort (   $function)

Sort the entries with a user-defined comparison function and maintain key association

Parameters
callable$function
Returns
void

Here is the caller graph for this function:

uksort (   $function)

Sort the entries by keys using a user-defined comparison function

Parameters
callable$function
Returns
void
unserialize (   $data)

Unserialize an ArrayObject

Parameters
string$data
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

$flag
protected
$iteratorClass
protected
$protectedProperties
protected
$storage
protected
const ARRAY_AS_PROPS = 2

Entries can be accessed as properties (read and write).

const STD_PROP_LIST = 1

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: