public function makeUserFromRow(array $row)
 {
     $user = new User($row['user'], $row['pass'], $row['fullname'], $row['address'], $row['postcode']);
     $user->setUserId($row['id']);
     $user->setFullname($row['fullname']);
     $user->setAddress($row['address']);
     $user->setPostcode($row['postcode']);
     $user->setBio($row['bio']);
     $user->setIsAdmin($row['isadmin']);
     if (!empty($row['email'])) {
         $user->setEmail(new Email($row['email']));
     }
     if (!empty($row['age'])) {
         $user->setAge(new Age($row['age']));
     }
     if (!empty($row['totalpayed'])) {
         $user->setTotalpayed($row['totalpayed']);
     }
     if (!empty($row['totalearned'])) {
         $user->setTotalearned($row['totalearned']);
     }
     if (!empty($row['banr'])) {
         $user->setBnr($row['banr']);
     }
     return $user;
 }
 public function makeUserFromRow(array $row)
 {
     $user = new User($row['user'], $row['pass']);
     $user->setUserId($row['id']);
     $user->setBio($row['bio']);
     $user->setIsAdmin($row['isadmin']);
     if (!empty($row['email'])) {
         $user->setEmail(new Email($row['email']));
     }
     if (!empty($row['age'])) {
         $user->setAge(new Age($row['age']));
     }
     return $user;
 }
 public function makeUserFromRow(array $row)
 {
     $user = new User($row['user'], $row['pass'], $row['first_name'], $row['last_name'], $row['phone'], $row['company']);
     $user->setUserId($row['id']);
     $user->setFirstName($row['first_name']);
     $user->setLastName($row['last_name']);
     $user->setPhone($row['phone']);
     $user->setCompany($row['company']);
     $user->setIsAdmin($row['isadmin']);
     if (!empty($row['email'])) {
         $user->setEmail(new Email($row['email']));
     }
     if (!empty($row['phone'])) {
         $user->setPhone(new Phone($row['phone']));
     }
     return $user;
 }
Exemple #4
0
 public function makeUserFromRow(array $row)
 {
     $user = new User($row['user'], $row['pass'], $row['salt'], $row['full_name'], $row['address'], $row['postcode'], $row['money_spent'], $row['money_received']);
     $user->setUserId($row['id']);
     $user->setHash($row['pass']);
     $user->setSalt($row['salt']);
     $user->setFullname($row['full_name']);
     $user->setAddress($row['address']);
     $user->setPostcode($row['postcode']);
     $user->setBio($row['bio']);
     $user->setIsAdmin($row['is_admin']);
     $user->setBankAccNum($row['bank_acc_num']);
     $user->setIsDoctor($row['is_doctor']);
     if (!empty($row['email'])) {
         $user->setEmail(new Email($row['email']));
     }
     if (!empty($row['age'])) {
         $user->setAge(new Age($row['age']));
     }
     return $user;
 }
Exemple #5
0
 public function makeUserFromRow(array $row)
 {
     $user = new User($row['user'], $row['pass'], $row['fullname'], $row['address'], $row['postcode']);
     $user->setUserId($row['id']);
     $user->setFullname($row['fullname']);
     $user->setAddress($row['address']);
     $user->setPostcode($row['postcode']);
     $user->setBio($row['bio']);
     $user->setIsAdmin($row['isadmin']);
     $user->setIsDoctor($row['isdoctor']);
     $user->setBankcard($row['bankcard']);
     $user->setMoneyspent($row['moneyspent']);
     $user->setMoneyearned($row['moneyearned']);
     if (!empty($row['email'])) {
         $user->setEmail(new Email($row['email']));
     }
     if (!empty($row['age'])) {
         $user->setAge(new Age($row['age']));
     }
     return $user;
 }
 public function makeUserFromRow(array $row)
 {
     $user = new User($row['user'], $row['pass'], $row['fullname'], $row['address'], $row['postcode']);
     $user->setUserId($row['id']);
     $user->setFullname($row['fullname']);
     $user->setAddress($row['address']);
     $user->setPostcode($row['postcode']);
     $user->setBio($row['bio']);
     $user->setBalance($row['balance']);
     $user->setIsAdmin($row['role']);
     if (!empty($row['email'])) {
         $user->setEmail(new Email($row['email']));
     }
     if (!empty($row['age'])) {
         $user->setAge(new Age($row['age']));
     }
     if (!empty($row['bankcard'])) {
         $user->setBankCard(new BankCard($row['bankcard']));
     }
     return $user;
 }