当前位置: 首页>>代码示例>>PHP>>正文


PHP MY_Model::MY_Model方法代码示例

本文整理汇总了PHP中MY_Model::MY_Model方法的典型用法代码示例。如果您正苦于以下问题:PHP MY_Model::MY_Model方法的具体用法?PHP MY_Model::MY_Model怎么用?PHP MY_Model::MY_Model使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MY_Model的用法示例。


在下文中一共展示了MY_Model::MY_Model方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::MY_Model();
     $this->primary_key = "id";
     $this->table_name = "solicitacao";
     $this->order_by = "id";
 }
开发者ID:4bner,项目名称:bsbios,代码行数:7,代码来源:SolicitacaoModel.php

示例2: __construct

 public function __construct()
 {
     parent::MY_Model();
     $this->tabla['nombre'] = 'regnal';
     $this->tabla['campoclave'] = 'cum';
     $this->tabla['campos'] = array('cum', 'nombre', 'provincia', 'localidad', 'grupo', 'vigencia', 'nivel');
 }
开发者ID:kailIII,项目名称:jamboree,代码行数:7,代码来源:miembro.php

示例3: __construct

 public function __construct()
 {
     parent::MY_Model();
     $this->tabla['nombre'] = 'participantes';
     $this->tabla['campoclave'] = 'cum';
     $this->tabla['campos'] = array('cum', 'responsable', 'registrado', 'idseisena', 'pasado_edad');
 }
开发者ID:kailIII,项目名称:jamboree,代码行数:7,代码来源:registro.php

示例4: __construct

 public function __construct()
 {
     parent::MY_Model();
     $this->tabla['nombre'] = 'usuarios';
     $this->tabla['campoclave'] = 'id';
     $this->tabla['campos'] = array('id', 'usuario', 'pass', 'nombre', 'estado', 'tipo');
 }
开发者ID:kailIII,项目名称:jamboree,代码行数:7,代码来源:usuario.php

示例5: sellpointModel

 /**
  * 构造函数
  */
 function sellpointModel()
 {
     parent::MY_Model();
     $this->table = 'pvSellPoint';
     $this->colum = 'Area_2015 area,Region_2015 region,SpSArea_2015 spsarea,Province province,County city,CountyLevel cityLevel,SellPointID userId,SellPointName storeName,Coding coding,Email email,Account userName,Password password';
     $this->load->library('Cache');
 }
开发者ID:zhaojianhui129,项目名称:rmp2016,代码行数:10,代码来源:sellpointModel.php

示例6: supplementRoleModel

 function supplementRoleModel()
 {
     parent::MY_Model();
     $this->table = 'supplementRole';
     $this->fundTypeConf = array(1 => '单店自主', 2 => '城市联合');
     $this->levelConf = array(1 => '普通补报', 2 => '特殊补报');
 }
开发者ID:zhaojianhui129,项目名称:qirmp2016,代码行数:7,代码来源:supplementRoleModel.php

示例7: __construct

 public function __construct()
 {
     parent::MY_Model();
     $this->tabla['nombre'] = 'campos';
     $this->tabla['campoclave'] = 'idcampo';
     $this->tabla['campos'] = array('idcampo', 'nombre');
 }
开发者ID:kailIII,项目名称:jamboree,代码行数:7,代码来源:campo.php

示例8:

 function Report_m()
 {
     parent::MY_Model();
     $this->load->helper('xml');
     $this->load->helper('text');
     $this->load->helper('file');
     //$this->load->library('amzdb');
     $this->ci->load->model('products_trends_m', 'ProductsTrends');
 }
开发者ID:kostya1017,项目名称:our,代码行数:9,代码来源:report_m.php

示例9: switch

 function _construct()
 {
     parent::MY_Model();
     log_message('debug', 'noSqlDb Class Initialized');
     //select which nosql adapter to use
     switch ($this->config->item('nosql_db')) {
         case 'dynamodb':
             $this->_nosql = $this->ci->load->library('amzdb');
             break;
         case 'mysql':
         default:
             $this->_nosql = $this->ci->load->library('nosqlMysql');
             break;
     }
 }
开发者ID:kostya1017,项目名称:our,代码行数:15,代码来源:nosql.php

示例10: Crowl_m

 public function Crowl_m()
 {
     parent::MY_Model();
     set_time_limit(0);
     ini_set("memory_limit", "400M");
     $this->load->library('simple_html_dom');
     $this->load->library('email');
     $this->ci->load->model('products_trends_m', 'ProductsTrends');
     $this->ci->load->model('products_m', 'Products');
     //$this->load->model("products_m", "Products:");
     /* Load the db adapter class */
     require_once dirname(BASEPATH) . '/system/application/libraries/mydb.php';
     $marketplaces = get_market_lookup(FALSE, TRUE);
     if (!empty($marketplaces)) {
         foreach ($marketplaces as $api) {
             $this->globalArray[$api] = array();
         }
     }
 }
开发者ID:kostya1017,项目名称:our,代码行数:19,代码来源:crowl_m.php

示例11: time

 function Violator_m()
 {
     parent::MY_Model();
     $this->ci->load->model('products_trends_m', 'ProductsTrends');
     if (!isset($this->ci->Crawl_data)) {
         $this->ci->load->model('crawl_data_m', 'Crawl_data');
     }
     $this->crawlStart = $this->crawlEnd = time();
     // TODO:  This is totally wrong.  It should be per marketplace, otherwise it will return whatever the last data is, using the default "all" param
     // might be better to fetch ->last_crawl() first, then deallocate the marketplace name index as needed.
     // maybe check for URL/router arguments here and set crawl range for this object now.
     if ($this->config->item('environment') == 'local') {
         $this->crawlStart = '2015-08-01 00:00:00';
         $this->crawlEnd = '2015-08-02 00:00:00';
     } else {
         $range = $this->ci->Crawl_data->last_crawl_range();
         $this->crawlStart = $range['from'];
         $this->crawlEnd = $range['to'];
     }
 }
开发者ID:kostya1017,项目名称:our,代码行数:20,代码来源:violator_m.php

示例12: HelperFileModel

 function HelperFileModel()
 {
     parent::MY_Model();
     $this->table = 'HelperFile';
 }
开发者ID:zhaojianhui129,项目名称:qirmp2016,代码行数:5,代码来源:HelperFileModel.php

示例13: xunProjectModel

 function xunProjectModel()
 {
     parent::MY_Model();
     $this->table = 'XunProject';
 }
开发者ID:zhaojianhui129,项目名称:qirmp2016,代码行数:5,代码来源:xunProjectModel.php

示例14: auditLogModel

 function auditLogModel()
 {
     parent::MY_Model();
     $this->table = 'AuditLog';
 }
开发者ID:zhaojianhui129,项目名称:qirmp2016,代码行数:5,代码来源:auditLogModel.php

示例15: jurSellpointModel

 function jurSellpointModel()
 {
     parent::MY_Model();
     $this->table = 'js_jurisdiction_sellpoint';
 }
开发者ID:zhaojianhui129,项目名称:rmp2016,代码行数:5,代码来源:jurSellpointModel.php


注:本文中的MY_Model::MY_Model方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。