Example #1
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 public function gravaNoBanco()
 {
     $request = knl_lib_Registry::getRequestObj();
     $dsolcompra = knl_extensions_dsolcompra_dao::getInstance();
     $m_dsolcompra = $dsolcompra->selectByIdDoc($request->getpost('id'));
     //  $m_dsolcompra->set_data_ini($this->data_br_to_mysql($request->getpost('data_ini')));
     //  $m_dsolcompra->set_data_fim($this->data_br_to_mysql($request->getpost('data_fim')));
     $dsolcompra->upsert($m_dsolcompra);
 }
Example #3
0
 public function gravaNoBanco($valores)
 {
     $newmDocH = new knl_extensions_dsolcompra_model(0, $valores['id_doc']);
     $newDocH = knl_extensions_dsolcompra_dao::getInstance();
     $newDocH->upsert($newmDocH);
 }