芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/lib/Entity/UserNotification.php
setCommonDependencies($store, $log); } /** * Set Read * @param int $readDt */ public function setRead($readDt) { $this->read = 1; if ($this->readDt == 0) $this->readDt = $readDt; } /** * Set unread */ public function setUnread() { $this->read = 0; } /** * Set Emailed * @param int $emailDt */ public function setEmailed($emailDt) { if ($this->emailDt == 0) $this->emailDt = $emailDt; } /** * Save */ public function save() { $this->getStore()->update('UPDATE `lknotificationuser` SET `read` = :read, readDt = :readDt, emailDt = :emailDt WHERE notificationId = :notificationId AND userId = :userId', [ 'read' => $this->read, 'readDt' => $this->readDt, 'emailDt' => $this->emailDt, 'notificationId' => $this->notificationId, 'userId' => $this->userId ]); } }