FML/Elements/Dico.php
public function render(\DOMDocument $domDocument)
    {
        $domElement = $domDocument->createElement("dico");
        foreach ($this->entries as $language => $entries) {
            $languageElement = $domDocument->createElement("language");
            $languageElement->setAttribute("id", $language);
            foreach ($entries as $entryId => $entryValue) {
                $entryElement = $domDocument->createElement($entryId, $entryValue);
                $languageElement->appendChild($entryElement);
            }
            $domElement->appendChild($languageElement);
        }
        return $domElement;
    }
public function render(\DOMDocument $domDocument)
    {
        $domElement = $domDocument->createElement("dico");
        foreach ($this->entries as $language => $entries) {
            $languageElement = $domDocument->createElement("language");
            $languageElement->setAttribute("id", $language);
            foreach ($entries as $entryId => $entryValue) {
                $entryElement = $domDocument->createElement($entryId, $entryValue);
                $languageElement->appendChild($entryElement);
            }
            $domElement->appendChild($languageElement);
        }
        return $domElement;
    }
public function render ( \ DOMDocument $ domDocument ) { $ domElement = $ domDocument -> createElement ( "dico" ) ; foreach ( $ this -> entries as $ language => $ entries ) { $ languageElement = $ domDocument -> createElement ( "language" ) ; $ languageElement -> setAttribute ( "id" , $ language ) ; foreach ( $ entries as $ entryId => $ entryValue ) { $ entryElement = $ domDocument -> createElement ( $ entryId , $ entryValue ) ; $ languageElement -> appendChild ( $ entryElement ) ; } $ domElement -> appendChild ( $ languageElement ) ; } return $ domElement ; }
Render the Dico

@param \DOMDocument $domDocument DOMDocument for which the Dico should be rendered
@return \DOMElement
Render the Dico