Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_osmembership/table/coupon.php
Ðазад
<?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die; use Joomla\CMS\Table\Table; use Joomla\Database\DatabaseDriver; class OSMembershipTableCoupon extends Table { /** * Constructor * * @param DatabaseDriver $db Database connector object */ public function __construct($db) { parent::__construct('#__osmembership_coupons', 'id', $db); } /** * Sanitize data before storing into database * * @return bool|void */ public function check() { $this->times = (int) $this->times; $this->used = (int) $this->used; if (!(int) $this->valid_from) { $this->valid_from = $this->getDbo()->getNullDate(); } if (!(int) $this->valid_to) { $this->valid_to = $this->getDbo()->getNullDate(); } return parent::check(); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка