Classes/ViewHelpers/ResultViewHelper.php
protected function markupInfoItems($infoItems)
    {
        $result = null;

        if (count($infoItems) == 1) {
            $result = $infoItems[0];
        } else {
            $result = $this->doc->createElement('ul');
            foreach ($infoItems as $item) {
                $li = $this->doc->createElement('li');
                $result->appendChild($li);
                $li->appendChild($item);
            }
        }

        return $result;
    }
protected function markupInfoItems($infoItems)
    {
        $result = null;

        if (count($infoItems) == 1) {
            $result = $infoItems[0];
        } else {
            $result = $this->doc->createElement('ul');
            foreach ($infoItems as $item) {
                $li = $this->doc->createElement('li');
                $result->appendChild($li);
                $li->appendChild($item);
            }
        }

        return $result;
    }
protected function markupInfoItems ( $ infoItems ) { $ result = null ; if ( count ( $ infoItems ) == 1 ) { $ result = $ infoItems [ 0 ] ; } else { $ result = $ this -> doc -> createElement ( 'ul' ) ; foreach ( $ infoItems as $ item ) { $ li = $ this -> doc -> createElement ( 'li' ) ; $ result -> appendChild ( $ li ) ; $ li -> appendChild ( $ item ) ; } } return $ result ; }
Returns marked up version of the DOM items passed, putting them into a list if necessary.
@param array $elements (DOM Elements)
@return array
Returns marked up version of the DOM items passed putting them into a list if necessary .