phpDocumentor Naos_Form
[ class tree: Naos_Form ] [ index: Naos_Form ] [ all elements ]

Class: Naos_Form_ArrayInterface

Source Location: /Form/ArrayInterface.php

Class Naos_Form_ArrayInterface

Class Overview

Naos_Form_ArrayInterface provides an virtual multidimensional array access to the available forms and their values. This interface is used by the smarty template engine.

The Naos_Form_ArrayInterface class uses an internal stack for the simulation of the multidimensional array object.

TODO: generalize this approach as it is interesting for other use cases to.

Located in /Form/ArrayInterface.php [line 31]

ArrayObject
   |
   --Naos_Form_ArrayInterface
Author(s):
Information Tags:
Copyright:  Copyright (c) 2008 Jupiter GmbH
License:  http://www.naos-framework.com/website.naos.framework/en/license

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ArrayObject (Internal Class)

constructor __construct ( $array )
append ( $value )
asort ( )
count ( )
exchangeArray ( $array )
getArrayCopy ( )
getFlags ( )
getIterator ( )
getIteratorClass ( )
ksort ( )
natcasesort ( )
natsort ( )
offsetExists ( $index )
offsetGet ( $index )
offsetSet ( $index, $newval )
offsetUnset ( $index )
setFlags ( $flags )
setIteratorClass ( $iteratorClass )
uasort ( $cmp_function )
uksort ( $cmp_function )

Inherited From ArrayObject (Internal Class)

ARRAY_AS_PROPS = 2
STD_PROP_LIST = 1

[ Top ]
Method Summary
void   __construct()   Constructs the array access interface. Either the internal stack is set to "zero" or initialized with the given value.
void   offsetExists()  
Naos_Form_ArrayInterface|mixed   offsetGet()  
void   offsetSet()  
void   offsetUnset()  

[ Top ]
Methods
Constructor __construct  [line 41]

  void __construct( [ $stack = array()]  )

Constructs the array access interface. Either the internal stack is set to "zero" or initialized with the given value.

Parameters:
   $stack: 

API Tags:
Access:  public


Redefinition of:
ArrayObject::constructor __construct ( $array )

[ Top ]
offsetExists  [line 49]

  void offsetExists( $offset  )

Parameters:
   $offset: 

API Tags:
See:  ArrayObject::offsetExists()
Access:  public


Redefinition of:
ArrayObject::offsetExists ( $index )

[ Top ]
offsetGet  [line 64]

  Naos_Form_ArrayInterface|mixed offsetGet( $offset  )

Parameters:
   $offset: 

API Tags:
See:  ArrayObject::offsetGet() This function implements the virtual stack and is responsible for the supply of the correct values. This can be a new instance of Naos_Form_ArrayInterface with an additional stack level or an "real value".
Access:  public


Redefinition of:
ArrayObject::offsetGet ( $index )

[ Top ]
offsetSet  [line 86]

  void offsetSet( $offset, $value  )

Parameters:
   $offset: 
   $value: 

API Tags:
See:  ArrayObject::offsetSet()
Access:  public


Redefinition of:
ArrayObject::offsetSet ( $index, $newval )

[ Top ]
offsetUnset  [line 93]

  void offsetUnset( $offset  )

Parameters:
   $offset: 

API Tags:
See:  ArrayObject::offsetUnset()
Access:  public


Redefinition of:
ArrayObject::offsetUnset ( $index )

[ Top ]

Documentation generated on Sat, 13 Sep 2008 01:40:37 -0400 by phpDocumentor 1.4.0