function __construct($data = null) { parent::__construct($data); $this->table_name = 'customers'; $this->primary_key = 'customers.customerId'; if ($data != null) { $this->id = $data->customerId; $this->personId = $data->personId; $this->payment = $data->payment; } }
function __construct($data = null) { parent::__construct($data); $this->table_name = 'users'; $this->primary_key = 'users.userId'; if ($data != null) { $this->id = $data->userId; $this->userName = $data->userName; $this->password = $data->password; $this->accesslevel = $data->accesslevel; } }