Exemplo n.º 1
0
 public function insert()
 {
     // inserção
     $this->adicionaCampos();
     parent::insert();
     if ($this->result) {
         $this->clear();
     }
     // retorno
     return $this->result;
 }
Exemplo n.º 2
0
 public function insert()
 {
     static $result;
     $this->adicionaCampos();
     $result = parent::insert();
     if ($result) {
         $this->clear();
     }
     return $result;
 }