本文整理汇总了PHP中utils::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP utils::__construct方法的具体用法?PHP utils::__construct怎么用?PHP utils::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类utils
的用法示例。
在下文中一共展示了utils::__construct方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
function __construct($db_table, $request, $columns, $field = 'id', $order_field = '', $map_filed = '', $orderCondition = '', $insert_page = true, $withscript = 'true')
{
parent::__construct();
$this->db_table = $db_table;
$this->request = $request;
$this->columns = $columns;
$this->field = $field;
$this->order_field = $order_field;
$this->map_field = $map_filed;
$this->orderCondition = $orderCondition;
$this->withAlert = $withscript;
$this->insertPage = $insert_page;
if ($this->withAlert == true) {
echo '<script> waitingDialog.show("Working", {dialogSize: "md", progressType: "danger"});
</script>';
}
if ($this->request['action'] == 'Insert') {
return $this->_new();
} elseif ($this->request['action'] == 'Edit') {
return $this->_update();
} elseif ($this->request['action'] == 'Delete') {
return $this->_Delete();
}
}
示例2:
function __construct()
{
parent::__construct();
$this->SetTextareaCols();
$this->SetTextareaRows();
}
示例3:
function __construct()
{
parent::__construct();
}