From ce7c650c3ac0c7921d00682d66570a1833624309 Mon Sep 17 00:00:00 2001 From: Bert Ramakers Date: Fri, 15 Apr 2016 14:10:57 +0200 Subject: [PATCH] III-845: Add createdby, creationdate, lastupdated, and lastupdatedby attributes to actor when converting to cdbxml. --- lib/CultureFeed/Cdb/Item/Actor.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/CultureFeed/Cdb/Item/Actor.php b/lib/CultureFeed/Cdb/Item/Actor.php index 210ad5d..b5670c3 100644 --- a/lib/CultureFeed/Cdb/Item/Actor.php +++ b/lib/CultureFeed/Cdb/Item/Actor.php @@ -171,6 +171,22 @@ public function appendToDOM(DOMElement $element, $cdbScheme = '3.2') $this->contactInfo->appendToDOM($actorElement); } + if ($this->createdBy) { + $actorElement->setAttribute('createdby', $this->createdBy); + } + + if ($this->creationDate) { + $actorElement->setAttribute('creationdate', $this->creationDate); + } + + if (isset($this->lastUpdated)) { + $actorElement->setAttribute('lastupdated', $this->lastUpdated); + } + + if (isset($this->lastUpdatedBy)) { + $actorElement->setAttribute('lastupdatedby', $this->lastUpdatedBy); + } + if (count($this->keywords) > 0) { $keywordsElement = $dom->createElement('keywords'); if (version_compare($cdbScheme, '3.3', '>=')) {