| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- class ObjectUser {
- public $primaryKey;
- public $login;
- public $password;// optional (required in createUser)
- public $name;
- public $email;
- public $phone;
- public $homeEmail;
- public $homePhone;
- public $employeeType;// 'Pracownik','Kandydat','Partner','Anonymous'
- public $isDisabled;// 1, 0 or null if not set
- protected $_storage;
- public function __construct($storage) {
- $this->_storage = $storage;
- }
- public function exportData() {
- $data = new stdClass();
- $data->primaryKey = $this->primaryKey;
- $data->login = $this->login;
- $data->password = $this->password;
- $data->name = $this->name;
- $data->email = $this->email;
- $data->phone = $this->phone;
- $data->homeEmail = $this->homeEmail;
- $data->homePhone = $this->homePhone;
- $data->employeeType = $this->employeeType;
- $data->isDisabled = $this->isDisabled;
- return $data;
- }
- }
|