/** @return UserAccountRememberMeModel **/ public function loadByUserAccountIDAndAccessKey($id, $access) { global $DB; $stat = $DB->prepare("SELECT user_account_verify_email.* FROM user_account_verify_email WHERE user_account_id =:user_account_id AND access_key=:access_key"); $stat->execute(array('user_account_id' => $id, 'access_key' => $access)); if ($stat->rowCount() > 0) { $uavem = new UserAccountVerifyEmailModel(); $uavem->setFromDataBaseRow($stat->fetch()); return $uavem; } }
public function fetchAll() { $this->buildStart(); $this->build(); $this->buildStat(); $results = array(); while ($data = $this->stat->fetch()) { $uwgm = new UserAccountVerifyEmailModel(); $uwgm->setFromDataBaseRow($data); $results[] = $uwgm; } return $results; }