public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new daoEmissor(); } return self::$instance; }
echo "<br>".$emissor->getId(); echo "<br>".$emissor->getCNPJ(); echo "<br>".$emissor->getxNome(); echo "<br>".$emissor->getxFant(); echo "<br>".$emissor->getxLgr(); echo "<br>".$emissor->getnro(); echo "<br>".$emissor->getxCpl(); echo "<br>".$emissor->getxBairro(); echo "<br>".$emissor->getcMun(); echo "<br>".$emissor->getxMun(); echo "<br>".$emissor->getUF(); echo "<br>".$emissor->getCEP(); echo "<br>".$emissor->getcPais(); echo "<br>".$emissor->getxPais(); echo "<br>".$emissor->getfone(); echo "<br>".$emissor->getIE(); echo "<br>".$emissor->getIEST(); echo "<br>".$emissor->getIM(); echo "<br>".$emissor->getCNAE(); echo "<br>".$emissor->getCRT(); */ $dao = daoEmissor::getInstance(); //$dao->Inserir($emissor); //$dao->Editar($emissor); //$dao->Excluir($emissor->getCNPJ()); $emissorn = $dao->getEmissorDao('id', '12'); //$emissorn->getUF(); //var_dump($emissorn); echo "<pre>", print_r($emissorn);