Jarves\Storage\AbstractStorage::update PHP Method

update() abstract public method

Updates an object entry. This means, all fields which are not defined will be saved as NULL.
abstract public update ( array $pk, array $values )
$pk array
$values array
    public abstract function update($pk, $values);

Usage Example

Example #1
0
 /**
  * {@inheritDoc}
  */
 public function update($primaryKey, $values)
 {
     $this->mapPrimaryKey($primaryKey);
     $path = $this->getPathFromPK($primaryKey);
     $this->webFilesystem->write($path, $values['content']);
     return parent::update($primaryKey, $values);
 }