Skip to content

Commit

Permalink
Merge d74343d into 5fcd9bd
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrv committed Oct 3, 2018
2 parents 5fcd9bd + d74343d commit 4a4aa1d
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 @@ -545,6 +573,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 4a4aa1d

Please sign in to comment.