✏️ 正在编辑: MercanetResponseCode.php
路径:
/home/bpioifn/www/pigmentse/modules/mercanet/classes/MercanetResponseCode.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * 1961-2019 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-2019 BNP Paribas * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ class MercanetResponseCode extends ObjectModel { /** * ID * @var integer */ public $id_mercanet_response_code; /** * Message * @var float */ public $message; /** * @see ObjectModel::$definition */ public static $definition = array( 'table' => 'mercanet_response_code', 'primary' => 'id_mercanet_response_code', 'multilang' => true, 'fields' => array( 'id_mercanet_response_code' => array( 'type' => self::TYPE_STRING, 'required' => true ), 'message' => 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 getMessageByCode($code, $id_lang = null) { if (empty($id_lang)) { $id_lang = Configuration::getGlobalValue('PS_LANG_DEFAULT'); } return Db::getInstance()->getValue(' SELECT `message` FROM `'._DB_PREFIX_.'mercanet_response_code_lang` WHERE `id_lang` = '.pSQL((int)$id_lang).' AND `id_mercanet_response_code` = "'.pSQL($code).'" '); } }
💾 保存文件
← 返回文件管理器