ObjectUser.php 866 B

12345678910111213141516171819202122232425262728293031323334353637
  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 $phone;
  9. public $homeEmail;
  10. public $homePhone;
  11. public $employeeType;// 'Pracownik','Kandydat','Partner','Anonymous'
  12. public $isDisabled;// 1, 0 or null if not set
  13. protected $_storage;
  14. public function __construct($storage) {
  15. $this->_storage = $storage;
  16. }
  17. public function exportData() {
  18. $data = new stdClass();
  19. $data->primaryKey = $this->primaryKey;
  20. $data->login = $this->login;
  21. $data->password = $this->password;
  22. $data->name = $this->name;
  23. $data->email = $this->email;
  24. $data->phone = $this->phone;
  25. $data->homeEmail = $this->homeEmail;
  26. $data->homePhone = $this->homePhone;
  27. $data->employeeType = $this->employeeType;
  28. $data->isDisabled = $this->isDisabled;
  29. return $data;
  30. }
  31. }