Exemple #1
0
 public function actualizarSalario($salario = NULL)
 {
     $table = new \apf\db\mysql5\Table("usuarios_datos");
     $update = new \apf\db\mysql5\Update($table);
     $fields = array("salario" => $salario);
     $update->fields($fields);
     $where = array(array("field" => "id_usuario", "value" => $this->getId()));
     $update->where($where);
     return $update->execute();
 }
Exemple #2
0
 public function actualizarOferta()
 {
     $table = new \apf\db\mysql5\Table("ofertas");
     $update = new \apf\db\mysql5\Update($table);
     $fields = array("titulo" => $this->_titulo, "id_empresa" => $this->_empresa->getId(), "contacto" => $this->_contacto, "titulo" => $this->_titulo, "cuerpo" => $this->_cuerpo, "salario" => $this->_salario, "duracion" => $this->_duracion, "comienzo" => $this->_comienzo, "fecha_publicacion" => $this->_fechaPublicacion, "email" => $this->_email);
     $update->fields($fields);
     $where = array(array("field" => "id", "value" => $this->_id));
     $update->where($where);
     return $update->execute();
 }
Exemple #3
0
 public function update()
 {
     $table = new \apf\db\mysql5\Table($this->_table);
     $update = new \apf\db\mysql5\Update($table);
     $db = \apf\db\mysql5\Adapter::getInstance();
     $date = $db->getDate();
     $this->setMomentoProceso($date);
     $fields = array("id_oferta" => $this->_idOferta, "estado" => (string) $this->_estado, "momento_proceso" => $date, "pid" => $this->_pid, "error" => $this->_error, "mensaje_error" => $this->_msgError);
     $update->fields($fields);
     $where = array(array("field" => "id", "value" => $this->_id));
     $update->where($where);
     return $update->execute();
 }