private function Execute() { $this->Connect(); try { $this->Delete->execute($this->Places); $this->Result = true; } catch (PDOException $e) { $this->Result = null; WFMsg("<b>Erro ao Deletar:</b> {$e->getMessage()}", $e->getCode()); } }
private function Execute() { $this->Connect(); try { $this->Create->execute($this->Dados); $this->Result = $this->Conn->lastInsertId(); } catch (PDOException $e) { $this->Result = null; WFMsg("<b>Erro ao cadastrar:</b> {$e->getMessage()}", $e->getCode()); } }
private function Execute() { $this->Connect(); try { $this->getSyntax(); $this->Read->execute(); $this->Result = $this->Read->fetchAll(); } catch (PDOException $e) { $this->Result = null; WFMsg("<b>Erro ao Ler:</b> {$e->getMessage()}", $e->getCode()); } }
private function Execute() { $this->Connect(); try { $this->Update->execute(array_merge($this->Dados, $this->Places)); $this->Result = true; } catch (PDOException $e) { $this->Result = null; WFMsg("<b>Erro ao Ler:</b> {$e->getMessage()}", $e->getCode()); } }