✏️ 正在编辑: AxeptaIsoCountry.php
路径:
/home/bpioifn/www/pigmentse/modules/axepta/classes/AxeptaIsoCountry.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 AxeptaIsoCountry extends ObjectModel { public $id_country; public $name; public $iso_code_2; public $iso_code_3; public $num_code; public $latitude; public $longitude; public static $definition = array( 'table' => 'axepta_iso_country', 'primary' => 'id_country', 'multilang' => false, 'fields' => array( 'id_country' => array( 'type' => ObjectModel::TYPE_INT, 'required' => true, ), 'name' => array( 'type' => ObjectModel::TYPE_INT, 'required' => true, ), 'iso_code_2' => array( 'type' => ObjectModel::TYPE_STRING, 'required' => false, ), 'iso_code_3' => array( 'type' => ObjectModel::TYPE_STRING, 'required' => true, ), 'num_code' => array( 'type' => ObjectModel::TYPE_INT, 'required' => true, ), 'latitude' => array( 'type' => ObjectModel::TYPE_FLOAT, 'required' => true, ), 'longitude' => array( 'type' => ObjectModel::TYPE_FLOAT, 'required' => true, ) ), ); public function toArray() { return [ 'id_country' => $this->id_country, 'name' => $this->name, 'iso_code_2' => $this->iso_code_2, 'iso_code_3' => $this->iso_code_3, 'num_code' => $this->num_code, 'latitude' => $this->latitude, 'longitude' => $this->longitude ]; } }
💾 保存文件
← 返回文件管理器