src/UI/Template.php
public function addArrayRecursive( $name, $data, $steps = array(), $overwrite = FALSE )
	{
		$number		= 0;
		$steps[]	= $name;
		foreach( $data as $key => $value )
		{
			$isListObject	= $value instanceof ArrayObject || $value instanceof ADT_List_Dictionary;
			if( is_array( $value ) || $isListObject  )
			{
				$number	+= $this->addArrayRecursive( $key, $value, $steps );
			}
			else
			{
				$key	= implode( ".", $steps ).".".$key;
				$this->addElement( $key, $value );
				$number ++;
			}
		}
		return $number;
	}
public function addArrayRecursive( $name, $data, $steps = array(), $overwrite = FALSE )
	{
		$number		= 0;
		$steps[]	= $name;
		foreach( $data as $key => $value )
		{
			$isListObject	= $value instanceof ArrayObject || $value instanceof ADT_List_Dictionary;
			if( is_array( $value ) || $isListObject  )
			{
				$number	+= $this->addArrayRecursive( $key, $value, $steps );
			}
			else
			{
				$key	= implode( ".", $steps ).".".$key;
				$this->addElement( $key, $value );
				$number ++;
			}
		}
		return $number;
	}
public function addArrayRecursive ( $ name , $ data , $ steps = array ( ) , $ overwrite = FALSE ) { $ number = 0 ; $ steps [ ] = $ name ; foreach ( $ data as $ key => $ value ) { $ isListObject = $ value instanceof ArrayObject || $ value instanceof ADT_List_Dictionary ; if ( is_array ( $ value ) || $ isListObject ) { $ number += $ this -> addArrayRecursive ( $ key , $ value , $ steps ) ; } else { $ key = implode ( "." , $ steps ) . "." . $ key ; $ this -> addElement ( $ key , $ value ) ; $ number ++ ; } } return $ number ; }
Adds an array recursive and returns number of added elements.
@access		public
@param		string		$name			Key of array
@param		mixed		$data			Values of array
@param		array		$steps			Steps within recursion
@param		bool		$overwrite		Flag: overwrite existing tag
@return		int
Adds an array recursive and returns number of added elements .