/** * Serializes the content object attribute * * @param eZPackage $package * @param eZContentObjectAttribute $objectAttribute * @return DOMNode */ function serializeContentObjectAttribute($package, $objectAttribute) { $node = $this->createContentObjectAttributeDOMNode($objectAttribute); $eztags = new eZTags(); $eztags->createFromAttribute($objectAttribute); $dom = $node->ownerDocument; $idStringNode = $dom->createElement('id-string'); $idStringNode->appendChild($dom->createTextNode($eztags->idString())); $node->appendChild($idStringNode); $keywordStringNode = $dom->createElement('keyword-string'); $keywordStringNode->appendChild($dom->createTextNode($eztags->keywordString())); $node->appendChild($keywordStringNode); $parentStringNode = $dom->createElement('parent-string'); $parentStringNode->appendChild($dom->createTextNode($eztags->parentString())); $node->appendChild($parentStringNode); return $node; }