public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }
<?php $documento = $knl_helper->getVar("doc"); $cabecalho = $knl_helper->getVar("cabecalho"); $pag = $knl_helper->getVar("pag"); $obsCount = $knl_helper->getVar("obsCount"); $helperShowBtn = knl_view_w3c_hlp_ShowBtn::getInstance(); $helperShowCab = knl_view_w3c_hlp_ShowCab::getInstance(); $helperShowDiv = knl_view_w3c_hlp_ShowDiv::getInstance(); $helperShowPag = knl_view_w3c_hlp_ShowPag::getInstance(); $actions = $cabecalho['docActions']; $helperShowBtn->monta_Actions($actions, $obsCount); $vars['doc_data;Data de emissão:'] = $documento->get_data_doc(); $vars['doc_numero;Número:'] = $documento->get_numero(); $htmldiv = "<div id=\"doc\">\n"; $helperShowDiv->set_html_Div($htmldiv); $helperShowDiv->monta_Div($vars); $htmldiv = "</div>\n\n"; $helperShowDiv->set_html_Div($htmldiv); $helperShowPag->monta_Paginas($documento->get_id(), $documento->get_pag(), $pag); $helperShowCab->monta_Cabecalho($cabecalho); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title> Documento </title> <?php echo $helperShowBtn->js_Editar();