protected function createOwnerDOMElement( DOMDocument $domDocument, eZContentObject $owner )
    {
        $ownerElement = $domDocument->createElement( 'Owner' );

        // Set attributes
        $ownerElement->setAttribute( 'objectID', $owner->attribute( 'id' ) );
        $ownerElement->setAttribute( 'primaryLanguage', $owner->attribute( 'initial_language_code' ) );

        // Add language list
        $ownerElement->appendChild( $this->createNameListDOMElementFromContentObject( $domDocument, $owner ) );

        return $ownerElement;
    }
protected function createOwnerDOMElement( DOMDocument $domDocument, eZContentObject $owner )
    {
        $ownerElement = $domDocument->createElement( 'Owner' );

        // Set attributes
        $ownerElement->setAttribute( 'objectID', $owner->attribute( 'id' ) );
        $ownerElement->setAttribute( 'primaryLanguage', $owner->attribute( 'initial_language_code' ) );

        // Add language list
        $ownerElement->appendChild( $this->createNameListDOMElementFromContentObject( $domDocument, $owner ) );

        return $ownerElement;
    }
protected function createOwnerDOMElement ( DOMDocument $ domDocument , eZContentObject $ owner ) { $ ownerElement = $ domDocument -> createElement ( 'Owner' ) ; // Set attributes $ ownerElement -> setAttribute ( 'objectID' , $ owner -> attribute ( 'id' ) ) ; $ ownerElement -> setAttribute ( 'primaryLanguage' , $ owner -> attribute ( 'initial_language_code' ) ) ; // Add language list $ ownerElement -> appendChild ( $ this -> createNameListDOMElementFromContentObject ( $ domDocument , $ owner ) ) ; return $ ownerElement ; }
Create Owner element.

@param DOMDocument Owner DOMDocument
@param eZContentObject Owner object

@return DOMElement Owner DOMElement, example:

<Owner objectID="135" primaryLanguage="nor-NO">
<NameList>
<Name locale="nor-NO">Balle Klorin</Name>
</NameList>
</Owner>
Create Owner element .