CLASS_TPL::tplDisplay PHP Метод

tplDisplay() публичный Метод

显示界面 tplDisplay function.
public tplDisplay ( mixed $str_tpl, string $arr_tplData = "" ) : void
$str_tpl mixed
$arr_tplData string (default: "")
Результат void
    function tplDisplay($str_tpl, $arr_tplData = "")
    {
        $this->common["tokenRow"] = fn_token();
        $this->common["ssid"] = session_id();
        $this->obj_smarty->assign("common", $this->common);
        $this->obj_smarty->assign("config", $this->config);
        $this->obj_smarty->assign("lang", $this->lang);
        $this->obj_smarty->assign("type", $this->type);
        $this->obj_smarty->assign("allow", $this->allow);
        $this->obj_smarty->assign("alert", $this->alert);
        if (isset($this->arr_cfg["admin"])) {
            $this->obj_smarty->assign("install", $this->install);
            $this->obj_smarty->assign("adminMod", $this->adminMod);
        }
        if (isset($this->arr_cfg["admin"]) || isset($this->arr_cfg["user"])) {
            $this->obj_smarty->assign("status", $this->status);
            $this->obj_smarty->assign("opt", $this->opt);
            //$this->obj_smarty->assign("userMod", $this->userMod);
        }
        $this->obj_smarty->assign("tplData", $arr_tplData);
        $this->obj_smarty->display($str_tpl);
    }