1: <?php
2: namespace Izberg\Resource;
3: use Izberg\Resource;
4:
5: class LocaleConfig extends Resource
6: {
7:
8: public function getPrefix()
9: {
10: return "application/" . self::$Izberg->getAppNamespace() . "/";
11: }
12:
13: public function update($params, $accept_type = "Content-Type: application/json")
14: {
15: $response = self::$Izberg->Call($this->getPrefix() . $this->getName() . "/", 'PUT', $params, $accept_type);
16: $this->hydrate($response);
17: return $this;
18: }
19:
20: public function delete($params = array(), $accept_type = "Content-Type: application/json")
21: {
22: return self::$Izberg->Call($this->getPrefix() . $this->getName() . "/", 'DELETE', $params, $accept_type);
23: }
24: }
25: