/**
  * {@inheritdoc}
  */
 public function update($name, array $values)
 {
     unset($values['name'], $values['id'], $values['status']);
     if (empty($values)) {
         // Nothing to update
         return;
     }
     $this->db->update('umenu')->fields($values)->condition('name', $name)->execute();
     if ($this->dispatcher) {
         $this->dispatcher->dispatch('menu:update', new GenericEvent($this->load($name)));
     }
 }
Exemple #2
0
 public function update($table, array $options = array())
 {
     return $this->connection->update($table, $options);
 }
Exemple #3
0
 /**
  * @see DatabaseConnection::update
  */
 public function update($valspec, $valueArgs = null, $where = '', $whereArgs = null)
 {
     return $this->dbc->update($this->tblname, $valspec, $valueArgs, $where, $whereArgs);
 }