protected function createSectionDOMElement( DOMDocument $domDocument, eZSection $section )
    {
        $sectionElement = $domDocument->createElement( 'Section' );

        // Set attributes
        $sectionElement->setAttribute( 'ID', $section->attribute( 'id' ) );
        $sectionElement->setAttribute( 'name', $section->attribute( 'name' ) );

        return $sectionElement;
    }
protected function createSectionDOMElement( DOMDocument $domDocument, eZSection $section )
    {
        $sectionElement = $domDocument->createElement( 'Section' );

        // Set attributes
        $sectionElement->setAttribute( 'ID', $section->attribute( 'id' ) );
        $sectionElement->setAttribute( 'name', $section->attribute( 'name' ) );

        return $sectionElement;
    }
protected function createSectionDOMElement ( DOMDocument $ domDocument , eZSection $ section ) { $ sectionElement = $ domDocument -> createElement ( 'Section' ) ; // Set attributes $ sectionElement -> setAttribute ( 'ID' , $ section -> attribute ( 'id' ) ) ; $ sectionElement -> setAttribute ( 'name' , $ section -> attribute ( 'name' ) ) ; return $ sectionElement ; }
Create Section element.

@param DOMDocument Owner DOMDocument
@param eZSection eZSection object

@return DOMElement Section DOMElement, example:

<Section ID="2" name="News" />
Create Section element .