Skip to content

Commit

Permalink
Merge pull request #38 from cultuurnet/develop
Browse files Browse the repository at this point in the history
PR Develop
  • Loading branch information
stijnswaanen committed Dec 14, 2018
2 parents 79b0421 + baebc04 commit 514a9f9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions lib/CultureFeed/Cdb/Item/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ class CultureFeed_Cdb_Item_Page implements CultureFeed_Cdb_IElement
protected $tagline;

/**
* The external Id of the page.
*
* @var string
*/
protected $externalId;


/**
* Get the id of this page.
* @return string
*/
Expand Down Expand Up @@ -386,7 +394,27 @@ public function setTagline($tagline)
$this->tagline = $tagline;
}


/**
* Set the external id of this page.
* @param string $externalId
*/
public function setExternalId($externalId)
{
$this->externalId = $externalId;
}

/**
* Get the external id of this page.
* @return string
*/
public function getExternalId()
{
return $this->externalId;
}


/**
* @see CultureFeed_Cdb_IElement::appendToDOM()
*/
public function appendToDOM(DOMElement $element)
Expand Down Expand Up @@ -544,6 +572,9 @@ public static function parseFromCdbXml(SimpleXMLElement $xmlElement)
// Set tagline.
$page->setTagline((string) $xmlElement->tagline);

// Set external id.
$page->setExternalId((string) $xmlElement->externalid);

return $page;
}
}

0 comments on commit 514a9f9

Please sign in to comment.