本文整理汇总了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;
}
示例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');
// }
}
示例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}"><<</a></th>{/heading_previous_cell}
{heading_title_cell}<th colspan="{colspan}">{heading}</th>{/heading_title_cell}
{heading_next_cell}<th><a href="{next_url}">>></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} {/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}
';
}
示例4:
function __construct()
{
parent::__construct();
$this->setTable('disciplinas');
}
示例5:
function __construct()
{
parent::__construct('standing', 'id');
}
示例6: __construct
/** -------------------------------------
*
* -------------------------------------
*/
public function __construct()
{
parent::__construct('payment');
}
示例7:
/**
* Constructor
*
* @access public
*/
function Main_model()
{
parent::__construct();
}
示例8:
function __construct()
{
// Call the Model constructor
parent::__construct();
}
示例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;
}
示例10: __construct
/** -------------------------------------
* Construct
* -------------------------------------
*/
public function __construct()
{
parent::__construct('order');
}
示例11:
function __construct()
{
parent::__construct();
$this->table = 'groups';
}
示例12: __construct
public function __construct()
{
parent::__construct("users", "userid");
}
示例13: __construct
/** -------------------------------------
*
* -------------------------------------
*/
public function __construct()
{
parent::__construct('additional');
}
示例14: __construct
public function __construct()
{
parent::__construct(IMS_DB_PREFIX . 'feedback', 'id');
}
示例15: __construct
/** -------------------------------------
* Create construct and set table
* @param string
* -------------------------------------
*/
public function __construct()
{
parent::__construct('products');
}