本文整理汇总了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";
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例6: supplementRoleModel
function supplementRoleModel()
{
parent::MY_Model();
$this->table = 'supplementRole';
$this->fundTypeConf = array(1 => '单店自主', 2 => '城市联合');
$this->levelConf = array(1 => '普通补报', 2 => '特殊补报');
}
示例7: __construct
public function __construct()
{
parent::MY_Model();
$this->tabla['nombre'] = 'campos';
$this->tabla['campoclave'] = 'idcampo';
$this->tabla['campos'] = array('idcampo', 'nombre');
}
示例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');
}
示例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;
}
}
示例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();
}
}
}
示例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'];
}
}
示例12: HelperFileModel
function HelperFileModel()
{
parent::MY_Model();
$this->table = 'HelperFile';
}
示例13: xunProjectModel
function xunProjectModel()
{
parent::MY_Model();
$this->table = 'XunProject';
}
示例14: auditLogModel
function auditLogModel()
{
parent::MY_Model();
$this->table = 'AuditLog';
}
示例15: jurSellpointModel
function jurSellpointModel()
{
parent::MY_Model();
$this->table = 'js_jurisdiction_sellpoint';
}