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


PHP My_Model::__construct方法代码示例

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


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

示例1:

 function __construct()
 {
     parent::__construct();
     $ci =& get_instance();
     $this->table_name = $ci->config->item('db_table_prefix', 'tank_auth') . $this->table_name;
     $this->profile_table_name = $ci->config->item('db_table_prefix', 'tank_auth') . $this->profile_table_name;
 }
开发者ID:rikardote,项目名称:rechum,代码行数:7,代码来源:Users.php

示例2:

 function __construct()
 {
     parent::__construct();
     //
     //        $admin_userdata = $this->session->userdata(APP_PFIX . 'admin');
     //        if (!$admin_userdata['logged_in_admin']) {
     //            $this->session->set_flashdata('errorlogin', "You must log in!");
     //            redirect('login/index');
     //        }
 }
开发者ID:beingjungshahi,项目名称:theexcursionnepal,代码行数:10,代码来源:messagetemplatesmodel.php

示例3: array

    /**
     * Name : __construct
     * Description : constructor of the class
     */
    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
        $this->pref = array('show_next_prev' => TRUE, 'next_prev_url' => base_url() . 'admin/calendar_controller/showcal');
        /*
         * Using codeIgniter calander function 
         */
        $this->pref['template'] = '
        {table_open}<table border="0" cellpadding="0" cellspacing="0" class="calendar">{/table_open}
        {heading_row_start}<tr>{/heading_row_start}

        {heading_previous_cell}<th><a href="{previous_url}">&lt;&lt;</a></th>{/heading_previous_cell}
        {heading_title_cell}<th colspan="{colspan}">{heading}</th>{/heading_title_cell}
        {heading_next_cell}<th><a href="{next_url}">&gt;&gt;</a></th>{/heading_next_cell}

        {heading_row_end}</tr>{/heading_row_end}

        {week_row_start}<tr>{/week_row_start}
        {week_day_cell}<td>{week_day}</td>{/week_day_cell}
        {week_row_end}</tr>{/week_row_end}

        {cal_row_start}<tr class="days">{/cal_row_start}
        {cal_cell_start}<td class="day">{/cal_cell_start}
        {cal_cell_start_today}<td>{/cal_cell_start_today}
        {cal_cell_start_other}<td class="other-month">{/cal_cell_start_other}

        {cal_cell_content}
            <div class="day_num">{day}</div>
            <div class="content">{content}</div>
        {cal_cell_content_today}
            <div class="day_num highlight">{day}</div>
            <div class="content">{content}</div>
        {/cal_cell_content_today}

        {cal_cell_no_content}<div class="day_num">{day}</div>{/cal_cell_no_content}
        {cal_cell_no_content_today}
            <div class="day_num highlight">{day}</div>
        {/cal_cell_no_content_today}

        {cal_cell_blank}&nbsp;{/cal_cell_blank}

        {cal_cell_other}{day}{/cal_cel_other}

        {cal_cell_end}</td>{/cal_cell_end}
        {cal_cell_end_today}</td>{/cal_cell_end_today}
        {cal_cell_end_other}</td>{/cal_cell_end_other}
        {cal_row_end}</tr>{/cal_row_end}

        {table_close}</table>{/table_close}
        ';
    }
开发者ID:Roledenez,项目名称:QADash,代码行数:56,代码来源:calendar_model.php

示例4:

 function __construct()
 {
     parent::__construct();
     $this->setTable('disciplinas');
 }
开发者ID:nathanolinto,项目名称:material-2016,代码行数:5,代码来源:disciplinas_model.php

示例5:

 function __construct()
 {
     parent::__construct('standing', 'id');
 }
开发者ID:TeamNO,项目名称:Saints,代码行数:4,代码来源:Standing.php

示例6: __construct

 /** -------------------------------------
  *
  *  -------------------------------------
  */
 public function __construct()
 {
     parent::__construct('payment');
 }
开发者ID:varyan,项目名称:shop,代码行数:8,代码来源:Payment_model.php

示例7:

 /**
  * Constructor
  *
  * @access public
  */
 function Main_model()
 {
     parent::__construct();
 }
开发者ID:goudaelalfy,项目名称:nahda,代码行数:9,代码来源:pagecat_model.php

示例8:

 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
 }
开发者ID:Roledenez,项目名称:QADash,代码行数:5,代码来源:datax.php

示例9: __construct

 /**
  * Sets the current default theme
  */
 public function __construct()
 {
     parent::__construct();
     $this->_theme = $this->settings->default_theme;
     $this->_admin_theme = $this->settings->admin_theme;
 }
开发者ID:kulgee001,项目名称:yggdrasil,代码行数:9,代码来源:theme_m.php

示例10: __construct

 /** -------------------------------------
  *  Construct
  *  -------------------------------------
  */
 public function __construct()
 {
     parent::__construct('order');
 }
开发者ID:varyan,项目名称:shop,代码行数:8,代码来源:Customer_model.php

示例11:

 function __construct()
 {
     parent::__construct();
     $this->table = 'groups';
 }
开发者ID:FaddliLWibowo,项目名称:spk-ci,代码行数:5,代码来源:user_model.php

示例12: __construct

 public function __construct()
 {
     parent::__construct("users", "userid");
 }
开发者ID:COMP4711-Asn01,项目名称:StockTickerAgent,代码行数:4,代码来源:Users.php

示例13: __construct

 /** -------------------------------------
  *  
  *  -------------------------------------
  */
 public function __construct()
 {
     parent::__construct('additional');
 }
开发者ID:varyan,项目名称:shop,代码行数:8,代码来源:Additional_model.php

示例14: __construct

 public function __construct()
 {
     parent::__construct(IMS_DB_PREFIX . 'feedback', 'id');
 }
开发者ID:soarmorrow,项目名称:ci-kindergarden,代码行数:4,代码来源:feedback_model.php

示例15: __construct

 /** -------------------------------------
  *  Create construct and set table
  *  @param string
  *  -------------------------------------
  */
 public function __construct()
 {
     parent::__construct('products');
 }
开发者ID:varyan,项目名称:shop,代码行数:9,代码来源:Product_model.php


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