✏️ 正在编辑: AxeptaXmlPaygatePosition.php
路径:
/home/bpioifn/www/pigmentse/modules/axepta/classes/AxeptaXmlPaygatePosition.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * 1961-2020 BNP Paribas * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) that is available * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0 * If you are unable to obtain it through the world-wide-web, please send an email * to modules@quadra-informatique.fr so we can send you a copy immediately. * * @author Quadra Informatique <modules@quadra-informatique.fr> * @copyright 1961-2022 BNP Paribas * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ class AxeptaXmlPaygatePosition extends ObjectModel { /** * ID * @var integer */ public $id; /** * Message * @var integer */ public $position; /** * IsoCode2 * @var string */ public $iso; /** * Trigram * @var string */ public $trigram; /** * isDefault * @var bool */ public $is_default; /** * @see ObjectModel::$definition */ public $description; public static $definition = array( 'table' => 'axepta_xml_paygate_position', 'primary' => 'id', 'multilang' => false, 'fields' => array( 'id' => array( 'type' => self::TYPE_INT, 'validate' => 'isUnsignedId', ), 'position' => array( 'type' => self::TYPE_INT, 'lang' => true, 'validate' => 'isNullOrUnsignedId', 'required' => true, ), 'iso' => array( 'type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, ), 'trigram' => array( 'type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, ), 'is_default' => array( 'type' => self::TYPE_BOOL, 'lang' => true, 'validate' => 'isBool', 'required' => true, ), ) ); /** * Return paygate position by isoCode2 * @param string $isoCode2 */ public static function getPaygatesPositionByIso(string $isoCode2) { return Db::getInstance()->executeS(' SELECT * FROM `'._DB_PREFIX_.'axepta_xml_paygate_position` WHERE `iso` = "'.pSQL($isoCode2).'" ORDER BY position ASC '); } /** * Return paygate position by default */ public static function getPaygatesPositionByDefault() { return Db::getInstance()->executeS(' SELECT * FROM `'._DB_PREFIX_.'axepta_xml_paygate_position` WHERE `is_default` = "1" ORDER BY position ASC '); } }
💾 保存文件
← 返回文件管理器