1: <?php
2: namespace Izberg\Resource;
3: use Izberg\Resource;
4:
5: class User extends Resource
6: {
7: public function getAddresses()
8: {
9: return parent::$Izberg->get_list("address", null, array("user" => $this->id), "Content-Type:Application/json");
10: }
11:
12: public function getApplications()
13: {
14: return parent::$Izberg->get_list("application", null, array("contact_user" => $this->id), "Content-Type:Application/json");
15: }
16:
17: public function getReviews()
18: {
19: return parent::$Izberg->get_list("review", null, array("user" => $this->id), "Content-Type:Application/json");
20:
21: }
22: public function getProfile()
23: {
24: return parent::$Izberg->get("profile", $this->id."/profile/", null, null, $this->getName());
25: }
26:
27: public function getInbox()
28: {
29: return parent::$Izberg->get_list("message", array(), "Accept: application/json", "user/" . $this->id . "/inbox/");
30: }
31:
32: public function getOutbox()
33: {
34: return parent::$Izberg->get_list("message", array(), "Accept: application/json", "user/" . $this->id . "/outbox/");
35: }
36: }
37: