Пример #1
0
 function mdl_widgets()
 {
     parent::modelFactory();
     $system =& $GLOBALS['system'];
     $this->smarty =& $system->loadModel('system/frontend');
     $this->theme =& $this->smarty->theme;
 }
Пример #2
0
 function shopObject()
 {
     parent::modelFactory();
     if (!$this->typeName) {
         $this->typeName = substr(strstr(get_class($this), '_'), 1);
     }
 }
Пример #3
0
 function mdl_entity()
 {
     parent::modelFactory();
     if (!class_exists('sdf_changer')) {
         require CORE_DIR . '/lib/sdf/sdf_changer.php';
     }
     $this->changer = new sdf_changer();
 }
Пример #4
0
 function mdl_math()
 {
     parent::modelFactory();
     $this->operationDecimals = $this->system->getConf('system.money.operation.decimals');
     //运算精度
     $this->operationCarryset = $this->system->getConf('system.money.operation.carryset');
     //运算进位方式
     $this->goodsShowDecimals = $this->system->getConf('system.money.decimals');
     //商品显示精度
     $this->getFunc();
 }
Пример #5
0
 function mdl_schemas()
 {
     parent::modelFactory();
     require CORE_INCLUDE_DIR . '/datatypes.php';
     $types = array();
     foreach ($datatypes as $k => $v) {
         if ($v['sql']) {
             $types[$k] = $v['sql'];
         }
     }
     $this->all_types =& $types;
 }
Пример #6
0
 function mdl_math()
 {
     parent::modelFactory();
     $this->operationDecimals = $this->system->getConf('system.money.operation.decimals');
     //运算精度
     $this->operationCarryset = $this->system->getConf('system.money.operation.carryset');
     //运算进位方式
     $this->goodsShowDecimals = $this->system->getConf('system.money.decimals');
     //商品显示精度
     switch ($this->operationCarryset) {
         case "0":
             //四舍五入
             $this->operationFunc = 'round';
             break;
         case "1":
             //向上取整
             $this->operationFunc = 'ceil';
             break;
         case "2":
             //向下取整
             $this->operationFunc = 'floor';
             break;
     }
 }
Пример #7
0
 function mdl_syncjob()
 {
     parent::modelFactory();
     $token = $this->system->getConf('certificate.token');
     $this->api = $this->system->api_call(PLATFORM, PLATFORM_HOST, PLATFORM_PATH, PLATFORM_PORT, $token);
 }
Пример #8
0
 function mdl_b2bcur($system)
 {
     parent::modelFactory($system);
 }
Пример #9
0
 function mdl_cur($system)
 {
     parent::modelFactory($system);
     $this->_money_format = array('decimals' => $this->system->getConf('system.money.operation.decimals'), 'dec_point' => $this->system->getConf('system.money.dec_point'), 'thousands_sep' => $this->system->getConf('system.money.thousands_sep'), 'fonttend_decimal_type' => $this->system->getConf('system.money.operation.carryset'), 'fonttend_decimal_remain' => $this->system->getConf('system.money.operation.decimals'));
 }