Todo List
Formagic_Item_Abstract | --Formagic_Item_Container
Implements interfaces:
Changes on following flag will be applied recursively to all items added to the container object:
[line 52]
[line 46]
[line 58]
Formagic_Item_Container addFilter( $filter, [ $args = null], mixed $rule)
Formagic_Item_Container addItem( $item, [string $name = null], [ $args = null], Formagic_Item_Abstract|String $type)
Creates new item object and adds this, or adds passed formagicItem object
Formagic_Item_Container addRule( mixed $rule, [ $args = array()])
integer count( )
Formagic_Item_Abstract getItem( string $name, [boolean $throwException = true])
Throws Formagic_Exception by default if item does not exist. This can be altered by setting $throwException to FALSE; the result value will be NULL then.
array getItems( )
ArrayObject getIterator( )
array getValue( )
The return value will be an associative array, the keys beeing the name of the item, the value beeing the filtered item value.
Formagic_Item_Container setDisabled( $flag)
Implements a fluent interface pattern.
Formagic_Item_Container setHidden( $flag)
Formagic_Item_Container setReadonly( $flag)
Formagic_Item_Container setValue( array $value)
Other than in Formagic_Item_Abstract defined, $value has to be an associative array, the key beeing the name of the item the value belongs to.
boolean validate( )
Iterates through all contained items. If any rule is violated, sub-item will return violated Formagic_Rule item and the container will pass it on.
If all items pass violation, validate() calls onValidate-handler and returns its result.