✏️ 正在编辑: AxeptaXmlPaygateActionCode.php
路径:
/home/bpioifn/www/pigmentse/modules/axepta/classes/AxeptaXmlPaygateActionCode.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-2020 BNP Paribas * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ class AxeptaPaygateActionCode extends ObjectModel { /** * ID * @var integer */ public $code; /** * Message * @var float */ public $message; /** * @see ObjectModel::$definition */ public $description; public static $definition = array( 'table' => 'axepta_xml_paygate_action_code', 'primary' => 'code', 'multilang' => true, 'fields' => array( 'code' => array( 'type' => self::TYPE_STRING, 'required' => true ), 'message' => array( 'type' => self :: TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, ), 'description' => array( 'type' => self :: TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, ), ) ); /** * Return message by code * @param string $code * @param integer $id_lang * @return string */ public static function getDescriptionByCode($code) { return Db::getInstance()->getValue(' SELECT `message` FROM `'._DB_PREFIX_.'axepta_xml_paygate_action_code` WHERE `id_mercanet_response_code` = "'.pSQL($code).'" '); } }
💾 保存文件
← 返回文件管理器