ObjectUser.php 931 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. class ObjectUser {
  3. public $primaryKey;
  4. public $login;
  5. public $password;// optional (required in createUser)
  6. public $name;
  7. public $email;
  8. public $aliasesList;
  9. public $phone;
  10. public $homeEmail;
  11. public $homePhone;
  12. public $employeeType;// 'Pracownik','Kandydat','Partner','Anonymous'
  13. public $isDisabled;// 1, 0 or null if not set
  14. protected $_storage;
  15. public function __construct($storage) {
  16. $this->_storage = $storage;
  17. }
  18. public function exportData() {
  19. $data = new stdClass();
  20. $data->primaryKey = $this->primaryKey;
  21. $data->login = $this->login;
  22. $data->password = $this->password;
  23. $data->name = $this->name;
  24. $data->email = $this->email;
  25. $data->aliasesList = $this->aliasesList;
  26. $data->phone = $this->phone;
  27. $data->homeEmail = $this->homeEmail;
  28. $data->homePhone = $this->homePhone;
  29. $data->employeeType = $this->employeeType;
  30. $data->isDisabled = $this->isDisabled;
  31. return $data;
  32. }
  33. }