コード例 #1
0
ファイル: Notify.mapper.class.php プロジェクト: lifecom/test
    public function AddTask(ModuleNotify_EntityTask $oNotifyTask)
    {
        $sql = '
			INSERT INTO ' . Config::Get('db.table.notify_task') . ' 
				( user_login, user_mail, notify_subject, notify_text, date_created, notify_task_status, notify_freq_type )
			VALUES
				( ?, ?, ?, ?, ?, ?d, ?d )
		';
        if ($this->oDb->query($sql, $oNotifyTask->getUserLogin(), $oNotifyTask->getUserMail(), $oNotifyTask->getNotifySubject(), $oNotifyTask->getNotifyText(), $oNotifyTask->getDateCreated(), $oNotifyTask->getTaskStatus(), $oNotifyTask->getNotifyFreqType()) === 0) {
            return true;
        }
        return false;
    }