public function __construct($idc = "", $ide = "", $nac = "", $ced = "") { if ($idc != "") { $ciudadano = new Ciudadano(); $denuncia = new DenunciaDAO(); $this->persona = $ciudadano->getById($idc); $this->denuncia = $denuncia->getByIC($idc); $this->nacionalidad_nueva = $nac; $this->cedula_nueva = $ced; } if ($ide != "") { $modelo = new EmpresaDAO(); $denuncia = new DenunciaJuridicaDAO(); $this->empresa = $modelo->queryByPatrono($ide); $this->denuncia = $denuncia->getByIdEmp($ide); } }