public function set_users($users) { $_users = array(); foreach ($users->{'user'} as $_user) { $user = new HighriseUser(); $user->load_from_xml_object($_user); $_users[] = $user; } $this->users = $_users; }
public function assign_to_user(HighriseUser $user) { if (!$user instanceof HighriseUser) { throw new Exception('$user must be an instance of HighriseUser'); } $this->set_owner_id($user->get_id()); }
public function assignToUser(HighriseUser $user) { $this->setOwnerId($user->getId()); }
public function me() { $xml = $this->make_request('me'); $this->check_for_errors('User'); $user = new HighriseUser(); $user->load_from_xml_object(simplexml_load_string($xml)); return $user; }