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 f6345a5 commit 3fa09fd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,4 +476,15 @@ public function delete_enum_bundle($name) {
$r = $this->_request('DELETE', '/admin/customfield/bundle/'. urlencode($name), '');
return $r['content'];
}

public function add_value_to_enum_bundle($name, $value) {
return $this->_put('/admin/customfield/bundle/'. urlencode($name) .'/'. urlencode($value));
}

public function add_values_to_enum_bundle($name, $values) {
foreach ($values as $value) {
$this->add_value_to_enum_bundle($name, $value);
}
return implode(', ', $values);
}
}

0 comments on commit 3fa09fd

Please sign in to comment.