Classes/ViewHelpers/ResultViewHelper.php
protected function appendInfoToContainer($info, $container)
    {
        if ($info && $container) {
            if (is_array($info) == false) {
                $container->appendChild($info);
            } else {
                foreach ($info as $infoItem) {
                    $container->appendChild($infoItem);
                }
            }
        }
    }
protected function appendInfoToContainer($info, $container)
    {
        if ($info && $container) {
            if (is_array($info) == false) {
                $container->appendChild($info);
            } else {
                foreach ($info as $infoItem) {
                    $container->appendChild($infoItem);
                }
            }
        }
    }
protected function appendInfoToContainer ( $ info , $ container ) { if ( $ info && $ container ) { if ( is_array ( $ info ) == false ) { $ container -> appendChild ( $ info ) ; } else { foreach ( $ info as $ infoItem ) { $ container -> appendChild ( $ infoItem ) ; } } } }
Convenince method to append an item to another one, even if undefineds and arrays are involved.
@param $info - the DOM element(s) to insert
@param \DOMElement $container - the DOM element to insert info to
Convenince method to append an item to another one even if undefineds and arrays are involved .