public function agregar() { $table = new \apf\db\mysql5\Table($this->_table); $insert = new \apf\db\mysql5\Insert($table); $insert->nombre = $this->_nombre; $res = $insert->execute(); $this->setId($res); }
public function agregarUri() { $table = new \apf\db\mysql5\Table("ofertas_uri"); $insert = new \apf\db\mysql5\Insert($table); $insert->id_oferta = $this->_id; $insert->uri = $this->_uri; $res = $insert->execute(); return $res; }
public function agegarCriterio($criterio = NULL) { $table = new \apf\db\mysql5\Table("usuarios_criterio"); $replace = new \apf\db\mysql5\Replace($table); $insert = new \apf\db\mysql5\Insert($table); $insert->criterio = $criterio; $insert->id_usuario = $this->id_usuario; $res = $insert->execute(); }
public function agregar() { $table = new \apf\db\mysql5\Table($this->_table); $insert = new \apf\db\mysql5\Insert($table); $insert->pais = $this->_pais; $insert->categoria = $this->_categoria; $insert->estado = '0'; $insert->provincia = $this->_provincia; $insert->uri = $this->_uri; return $insert->execute(); }
public function agregar() { $table = new \apf\db\mysql5\Table($this->_table); $insert = new \apf\db\mysql5\Insert($table); $insert->nombre = $this->_nombre; $insert->id_provincia = $this->_provincia->getId(); $insert->normalizado = (int) $this->_normalizado; $res = $insert->execute(); $this->setId($res); }
public function agregarDescripcion() { $table = new \apf\db\mysql5\Table("empresas_datos"); $insert = new \apf\db\mysql5\Insert($table); $insert->id_empresa = $this->_id; $insert->uri_import = $this->_uriImport; $insert->uri_empresa = $this->_uriEmpresa; $insert->uri_logo = $this->_uriLogo; $insert->email = $this->_email; $insert->descripcion = $this->_descripcion; $insert->direccion = $this->_direccion; $insert->contacto = $this->_contacto; return $insert->execute(); }