public function getInfos($asFlat = false)
    {
        $iterator = true === $asFlat
            ? $this->getRecursiveIterator()
            : $this;

	    $infos = array();
	    foreach ($iterator as $element) {
	        if ($element->getType() == self::TYPE_INFO) {
	            $infos[] = $element;
	        }
	    }
	    return $infos;
	}
public function getInfos($asFlat = false)
    {
        $iterator = true === $asFlat
            ? $this->getRecursiveIterator()
            : $this;

	    $infos = array();
	    foreach ($iterator as $element) {
	        if ($element->getType() == self::TYPE_INFO) {
	            $infos[] = $element;
	        }
	    }
	    return $infos;
	}
public function getInfos ( $ asFlat = false ) { $ iterator = true === $ asFlat ? $ this -> getRecursiveIterator ( ) : $ this ; $ infos = array ( ) ; foreach ( $ iterator as $ element ) { if ( $ element -> getType ( ) == self :: TYPE_INFO ) { $ infos [ ] = $ element ; } } return $ infos ; }
returns all info elements

@param bool $asFlat
@return array
returns all info elements