Beispiel #1
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Beispiel #2
0
 public function DocShow()
 {
     $request = knl_lib_Registry::getRequestObj()->getInstance();
     $DocVis = knl_lib_perm_Doc::getInstance();
     $DocVis->verificaDocVis($request->getGet('id'));
     $DocShow = knl_lib_doc_DocShow::getInstance();
     $doc = $DocShow->getDocumento($request->getGet('id'));
     $cabecalho = $DocShow->getDocumentoFull($doc);
     $actions = $DocShow->getActions($doc);
     $obsCount = knl_dao_doc_obs::getInstance()->CountByIdDoc($request->getGet('id'));
     $vl = knl_view_Loader::getInstance();
     $vl->setVar("doc", $doc);
     $vl->setVar("obsCount", $obsCount);
     $pag = $request->getGet('pag') == "" ? 1 : $request->getGet('pag');
     $vl->setVar("pag", $pag);
     $vl->setVar("cabecalho", $cabecalho);
     $vl->display("DocShow");
 }