Skip to content

Commit

Permalink
Merge pull request #17 from cultuurnet/feature/III-845
Browse files Browse the repository at this point in the history
III-845: Add createdby, creationdate, lastupdated, and lastupdatedby …
  • Loading branch information
svenhoutmeyers committed Apr 15, 2016
2 parents c8a654d + ce7c650 commit 5fcd9bd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/CultureFeed/Cdb/Item/Actor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '>=')) {
Expand Down

0 comments on commit 5fcd9bd

Please sign in to comment.