本文整理匯總了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();
}