當前位置: 首頁>>代碼示例>>PHP>>正文


PHP MY_Controller類代碼示例

本文整理匯總了PHP中MY_Controller的典型用法代碼示例。如果您正苦於以下問題:PHP MY_Controller類的具體用法?PHP MY_Controller怎麽用?PHP MY_Controller使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了MY_Controller類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getDiscount

 /**
  * get all activ discount
  * @return array discount
  */
 public function getDiscount()
 {
     $locale = \MY_Controller::getCurrentLocale();
     $time = time();
     $sql = "select *, mod_shop_discounts.id as ids, mod_shop_discounts.id as id\n                from mod_shop_discounts\n                left join mod_shop_discounts_i18n on mod_shop_discounts_i18n.id = mod_shop_discounts.id and mod_shop_discounts_i18n.locale = '{$locale}'\n                where (max_apply > count_apply \n                        or max_apply is null \n                        or (max_apply is null and count_apply is null)\n                        or (count_apply is null and max_apply > 0))\n                      and \n                      (date_begin < '{$time}' and date_end > '{$time}' \n                          or date_begin < '{$time}' and date_end is Null \n                           or date_begin is Null and date_end is Null\n                           or date_begin < '{$time}' and date_end = '0'\n                           or date_begin is null and date_end = '0')\n                      and \n                       active = 1";
     return $this->db->query($sql)->result_array();
 }
開發者ID:NaszvadiG,項目名稱:ImageCMS,代碼行數:11,代碼來源:discount_model_front.php

示例2:

 function __construct()
 {
     parent::__construct();
     $this->load->model('queue_model');
     $this->load->library('rest');
     Requests::register_autoloader();
 }
開發者ID:arbudt,項目名稱:semar_server,代碼行數:7,代碼來源:queue.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('index_model', 'index_model', TRUE);
     $this->load->model('upload_model', 'upload_model', TRUE);
     $this->data['pelajaran_result'] = $this->index_model->get_pelajaran();
 }
開發者ID:RianWardana,項目名稱:SuksesPTN,代碼行數:7,代碼來源:upload.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->module = 'dashboard';
     $this->cname = 'dashboard';
     $this->load->model('mdl_grafik', 'mg');
 }
開發者ID:ahmadsm,項目名稱:iwakkoicenter,代碼行數:7,代碼來源:dashboard.php

示例5:

 function __construct()
 {
     parent::__construct();
     $this->no_cache();
     $this->load->model('user_modelsupllier');
     $this->load->library('session');
 }
開發者ID:alienwizard,項目名稱:MediahelpCRM,代碼行數:7,代碼來源:16.5.14dashboardsup.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('usuario_model');
     $this->load->model('paginador_model');
     $this->load->library('pagination');
 }
開發者ID:jratenci,項目名稱:dee,代碼行數:7,代碼來源:usuario.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $log_details = new stdClass();
     stdlog($log_details);
     unset($log_details);
 }
開發者ID:Opmantek,項目名稱:open-audit,代碼行數:7,代碼來源:admin_location.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model(array('MOrder', 'MCustomer', 'MWorkflow_log', 'MLocation'));
     $this->load->helper(array('money_helper'));
     $this->load->library(array('form_validation', 'filter_orders', 'order_split'));
 }
開發者ID:OranTing,項目名稱:gdby_github_repo,代碼行數:7,代碼來源:suborder.php

示例9: __construct

 /**
  * 
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model("usuario_model", "_usuario_model");
     $this->load->model("usuario2_model", "_usuario2_model");
     $this->load->model("usuario_region_model", "_usuario_region_model");
 }
開發者ID:CarlosAyala,項目名稱:midas-codeigniter-modulo-emergencias,代碼行數:10,代碼來源:migracion.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->helper('url');
     $this->load->library('session');
 }
開發者ID:wisnuwidi,項目名稱:Codex,代碼行數:7,代碼來源:Examples.php

示例11:

 function __construct()
 {
     parent::__construct();
     $this->session->set_userdata("link_id", "index");
     $this->session->set_userdata("linkSub", "visit_management");
     $this->session->set_userdata("linkTitle", "Visit Purpose Management");
 }
開發者ID:OmondiKevin,項目名稱:ADT_MTRH,代碼行數:7,代碼來源:visit_management.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $admin_info = $this->session->userdata('admin_session');
     $params['admin_info'] = $admin_info;
     $this->load->vars($params);
 }
開發者ID:siqitech,項目名稱:kerdou,代碼行數:7,代碼來源:Main.php

示例13: isset

 function __construct()
 {
     parent::__construct();
     $this->load->model('penukaran_point_member_model');
     $this->load->model('setting_penukaran_point_model');
     $this->offset = isset($_POST['start']) ? $this->db->escape_str($this->input->post('start', TRUE)) : 0;
     $this->limit = isset($_POST['limit']) ? $this->db->escape_str($this->input->post('limit', TRUE)) : $this->config->item("length_records");
     $this->search = isset($_POST['query']) ? $this->db->escape_str($this->input->post('query', TRUE)) : '';
     $this->kdMember = isset($_POST['kd_member']) ? $this->db->escape_str($this->input->post('kd_member', TRUE)) : FALSE;
     $this->jumlahPointTukar = isset($_POST['jumlah_point_ditukar']) ? $this->db->escape_str($this->input->post('jumlah_point_ditukar', TRUE)) : FALSE;
     $this->pointMember = isset($_POST['point_member']) ? $this->db->escape_str($this->input->post('point_member', TRUE)) : FALSE;
     $this->tanggal = date('Y-m-d H:i:s');
     $this->keterangan = 'keterangan';
     $this->createdBy = $this->session->userdata('username');
     $this->createdDate = date('Y-m-d H:i:s');
     $this->updatedBy = $this->session->userdata('username');
     $this->updatedDate = date('Y-m-d H:i:s');
     $this->data = isset($_POST['data']) ? json_decode($this->input->post('data', TRUE)) : array();
     //generate no bukti
     $current_date = date('Ym');
     $no_ret = 'TP' . $current_date . '-';
     $sequence = $this->penukaran_point_member_model->get_kode_sequence($no_ret, 3);
     $this->noBukti = $no_ret . $sequence;
     //end of generate no bukti
 }
開發者ID:ibnoe,項目名稱:appymz,代碼行數:25,代碼來源:penukaran_point_member_controller.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('house_model');
     $this->load->model('financials_model');
     $this->load->model('projects_model');
 }
開發者ID:NaszvadiG,項目名稱:kiss-manage,代碼行數:7,代碼來源:Dashboard.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->module = 'stok_bahan';
     $this->cname = $this->module . '/input';
     $this->load->model('mdl_input', 'mp');
 }
開發者ID:ahmadsm,項目名稱:iwakkoicenter,代碼行數:7,代碼來源:input.php


注:本文中的MY_Controller類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。