src/libraries/adapters/DatabaseMySql.php
/**
    * Update an existing album in the database
    * This method does not overwrite existing values present in $params - hence "new action".
    *
    * @param string $id ID of the action to update which is always 1.
    * @param array $params Attributes to update.
    * @return boolean
    */
Update an existing album in the database
This method does not overwrite existing values present in $params - hence "new action".

@param string $id ID of the action to update which is always 1.
@param array $params Attributes to update.
@return boolean
Update an existing album in the database This method does not overwrite existing values present in $params - hence " new action " . @param string $id ID of the action to update which is always 1 . @param array $params Attributes to update . @return boolean
public function postAlbum($id, $params)
  {
    $params = $this->prepareAlbum($params);
    $params['owner'] = $this->owner;
    $bindings = array();
    if(isset($params['::bindings']))
      $bindings = $params['::bindings'];
    $stmt = $this->sqlUpdateExplode($params, $bindings);
    $bindings[':id'] = $id;
    $bindings[':owner'] = $this->owner;
    $result = $this->db->execute("UPDATE `{$this->mySqlTablePrefix}album` SET {$stmt} WHERE `id`=:id AND owner=:owner", $bindings);
    return ($result !== false);
  }
public function postAlbum ( $ id , $ params ) { $ params = $ this -> prepareAlbum ( $ params ) ; $ params [ 'owner' ] = $ this -> owner ; $ bindings = array ( ) ; if ( isset ( $ params [ '::bindings' ] ) ) $ bindings = $ params [ '::bindings' ] ; $ stmt = $ this -> sqlUpdateExplode ( $ params , $ bindings ) ; $ bindings [ ':id' ] = $ id ; $ bindings [ ':owner' ] = $ this -> owner ; $ result = $ this -> db -> execute ( " UPDATE ` { $ this -> mySqlTablePrefix } album` SET  { $ stmt }  WHERE `id`=:id AND owner=:owner " , $ bindings ) ; return ( $ result !== false ) ; }
Update an existing album in the database
 This method does not overwrite existing values present in $params - hence "new action".
Update an existing album in the database This method does not overwrite existing values present in $params - hence " new action " .