✏️ 正在编辑: EtsAbancartQueue.php
路径:
/home/bpioifn/www/pigmentse/modules/ets_abandonedcart/classes/EtsAbancartQueue.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * 2007-2022 ETS-Soft * * NOTICE OF LICENSE * * This file is not open source! Each license that you purchased is only available for 1 wesite only. * If you want to use this file on more websites (or projects), you need to purchase additional licenses. * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please contact us for extra customization service at an affordable price * * @author ETS-Soft <etssoft.jsc@gmail.com> * @copyright 2007-2022 ETS-Soft * @license Valid for 1 website (or project) for each purchase of license * International Registered Trademark & Property of ETS-Soft */ if (!defined('_PS_VERSION_')) exit; class EtsAbancartQueue extends ObjectModel { public $id_shop; public $id_lang; public $id_cart; public $id_customer; public $id_ets_abancart_reminder; public $id_ets_abancart_campaign; public $customer_name; public $email; public $subject; public $content; public $sent; public $sending_time; public $send_count; public $date_add; public static $definition = array( 'table' => 'ets_abancart_email_queue', 'primary' => 'id_ets_abancart_email_queue', 'multilang' => true, 'fields' => array( 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_cart' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_ets_abancart_reminder' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_ets_abancart_campaign' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'customer_name' => array('type' => self::TYPE_STRING, 'validate' => 'isCustomerName'), 'email' => array('type' => self::TYPE_STRING, 'validate' => 'isEmail'), 'subject' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml'), 'content' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml'), 'sent' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'sending_time' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), 'send_count' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), ) ); public static function clearAllQueue() { return Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'ets_abancart_email_queue`'); } public static function deleteQueue($id) { if (!$id || !Validate::isUnsignedInt($id)) { return false; } return Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'ets_abancart_email_queue` WHERE `id_ets_abancart_email_queue`=' . (int)$id); } public static function getMailLogs($id) { if (!$id || !Validate::isUnsignedInt($id)) { return false; } return Db::getInstance()->getRow('SELECT * FROM `' . _DB_PREFIX_ . 'ets_abancart_mail_log` WHERE `id_ets_abancart_email_queue`=' . (int)$id); } }
💾 保存文件
← 返回文件管理器