src/libraries/adapters/DatabaseMySql.php
/**
    * Delete an album from the database
    *
    * @param string $id ID of the action to delete
    * @return boolean
    */
Delete an album from the database
@param string $id ID of the action to delete
@return boolean
Delete an album from the database @param string $id ID of the action to delete @return boolean
public function deleteAlbum($id)
  {
    $res1 = $this->db->execute("DELETE FROM `{$this->mySqlTablePrefix}album` WHERE `id`=:id AND `owner`=:owner", array(':id' => $id, ':owner' => $this->owner));
    $res2 = $this->db->execute("DELETE FROM `{$this->mySqlTablePrefix}elementAlbum` WHERE `owner`=:owner AND `album`=:album", array(':owner' => $this->owner, ':album' => $id));
    if($res1 === false || $res2 === false)
      return false;
    return true;
  }
public function deleteAlbum ( $ id ) { $ res1 = $ this -> db -> execute ( " DELETE FROM ` { $ this -> mySqlTablePrefix } album` WHERE `id`=:id AND `owner`=:owner " , array ( ':id' => $ id , ':owner' => $ this -> owner ) ) ; $ res2 = $ this -> db -> execute ( " DELETE FROM ` { $ this -> mySqlTablePrefix } elementAlbum` WHERE `owner`=:owner AND `album`=:album " , array ( ':owner' => $ this -> owner , ':album' => $ id ) ) ; if ( $ res1 === false || $ res2 === false ) return false ; return true ; }
Delete an album from the database
 @param string $id ID of the action to delete
 @return boolean
Delete an album from the database @param string $id ID of the action to delete @return boolean
// if one fails then don't continue by using the second condition