/** * Creates a User object based on a DB row. * * @param array $row The DB row containing User data. * @return \MicroCMS\Domain\User */ protected function buildDomainObject($row) { $user = new User(); $user->setId($row['usr_id']); $user->setUsername($row['usr_name']); $user->setPassword($row['usr_password']); $user->setSalt($row['usr_salt']); $user->setRole($row['usr_role']); return $user; }
/** * Creates a User object based on a DB row. * * @param array $row The DB row containing User data. * @return \MicroCMS\Domain\User */ protected function buildDomainObject($row) { $user = new User(); $user->setId($row['usr_id']); $user->setUsername($row['usr_name']); $user->setPassword($row['usr_password']); $user->setSalt($row['usr_salt']); $user->setRole($row['usr_role']); $user->setMail($row['usr_mail']); $user->setTelephone($row['usr_tel']); $user->setAdresse($row['usr_adr']); $user->setVille($row['usr_ville']); return $user; }