protected function createClassDOMElement( DOMDocument $domDocument, eZContentClass $class )
    {
        $classElement = $domDocument->createElement( 'Class' );

        // Set attributes
        $classElement->setAttribute( 'ID', $class->attribute( 'id' ) );
        $classElement->setAttribute( 'primaryLanguage', $class->attribute( 'top_priority_language_locale' ) );
        $classElement->setAttribute( 'identifier', $class->attribute( 'identifier' ) );

        // Add Language list.
        $classElement->appendChild( $this->createNameListDOMElement( $domDocument, $class->NameList ) );

        return $classElement;
    }
protected function createClassDOMElement( DOMDocument $domDocument, eZContentClass $class )
    {
        $classElement = $domDocument->createElement( 'Class' );

        // Set attributes
        $classElement->setAttribute( 'ID', $class->attribute( 'id' ) );
        $classElement->setAttribute( 'primaryLanguage', $class->attribute( 'top_priority_language_locale' ) );
        $classElement->setAttribute( 'identifier', $class->attribute( 'identifier' ) );

        // Add Language list.
        $classElement->appendChild( $this->createNameListDOMElement( $domDocument, $class->NameList ) );

        return $classElement;
    }
protected function createClassDOMElement ( DOMDocument $ domDocument , eZContentClass $ class ) { $ classElement = $ domDocument -> createElement ( 'Class' ) ; // Set attributes $ classElement -> setAttribute ( 'ID' , $ class -> attribute ( 'id' ) ) ; $ classElement -> setAttribute ( 'primaryLanguage' , $ class -> attribute ( 'top_priority_language_locale' ) ) ; $ classElement -> setAttribute ( 'identifier' , $ class -> attribute ( 'identifier' ) ) ; // Add Language list. $ classElement -> appendChild ( $ this -> createNameListDOMElement ( $ domDocument , $ class -> NameList ) ) ; return $ classElement ; }
Create Class element.

@param DOMDocument Owner DOMDocument
@param eZContentClass eZContentClass object.

@return DOMElement Class DOMDocument, example:

<Class ID="12" identifier="comment" primaryLanguage="eng-GB">
<NameList>
<Name locale="eng-GB">eZ Publish rocks</Name>
</NameList>
</Class>
Create Class element .