Пример #1
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']);
     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;
 }
Пример #2
0
 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;
 }
Пример #3
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;
 }
Пример #4
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;
 }
Пример #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->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;
 }