Skip to content

Commit

Permalink
More code to handle enum bundles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Jahnke committed Apr 11, 2011
1 parent 2970d9e commit f6345a5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/youtrackclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,14 @@ public function __construct(\SimpleXMLElement $xml = NULL, Connection $youtrack
parent::__construct($xml, $youtrack);
}

public function _update(\SimpleXMLElement $xml) {
throw new NotImplementedException("_update(xml)");
protected function _update_attributes(\SimpleXMLElement $xml) {
$this->name = (string)$xml->attributes()->name;
}

protected function _update_children_attributes(\SimpleXMLElement $xml) {
foreach ($xml->children() as $node) {
$this->values[] = (string)$node;
}
}

public function toXML() {
Expand Down

0 comments on commit f6345a5

Please sign in to comment.