Skip to content

Commit

Permalink
III-578: remove duplicate code from Actor
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick committed Jan 5, 2016
1 parent 070a9d0 commit 95f5de0
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions lib/CultureFeed/Cdb/Item/Actor.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,44 +58,6 @@ public static function parseFromCdbXml(SimpleXMLElement $xmlElement)

CultureFeed_Cdb_Item_Base::parseCommonAttributes($actor, $xmlElement);

$actor_attributes = $xmlElement->attributes();

if (isset($actor_attributes['cdbid'])) {
$actor->setCdbId((string)$actor_attributes['cdbid']);
}

if (isset($actor_attributes['externalid'])) {
$actor->setExternalId((string)$actor_attributes['externalid']);
}

if (isset($actor_attributes['availablefrom'])) {
$actor->setAvailableFrom((string)$actor_attributes['availablefrom']);
}

if (isset($actor_attributes['availableto'])) {
$actor->setAvailableTo((string)$actor_attributes['availableto']);
}

if (isset($actor_attributes['createdby'])) {
$actor->setCreatedBy((string)$actor_attributes['createdby']);
}

if (isset($actor_attributes['creationdate'])) {
$actor->setCreationDate((string)$actor_attributes['creationdate']);
}

if (isset($actor_attributes['lastupdated'])) {
$actor->setLastUpdated((string)$actor_attributes['lastupdated']);
}

if (isset($actor_attributes['lastupdatedby'])) {
$actor->setLastUpdatedBy((string)$actor_attributes['lastupdatedby']);
}

if (isset($actor_attributes['owner'])) {
$actor->setOwner((string)$actor_attributes['owner']);
}

$actor->setDetails(CultureFeed_Cdb_Data_ActorDetailList::parseFromCdbXml($xmlElement->actordetails));

// Set categories
Expand Down

0 comments on commit 95f5de0

Please sign in to comment.