src/libraries/adapters/DatabaseMySql.php
/**
    * Remove an element from an album
    *
    * @param string $albumId ID of the album to update.
    * @param string $type Type of element
    * @param array $elementIds IDs of the elements to update.
    * @return boolean
    */
Remove an element from an album
@param string $albumId ID of the album to update.
@param string $type Type of element
@param array $elementIds IDs of the elements to update.
@return boolean
Remove an element from an album @param string $albumId ID of the album to update . @param string $type Type of element @param array $elementIds IDs of the elements to update . @return boolean
public function postAlbumRemove($albumId, $type, $elementIds)
  {
    $res = true;
    foreach($elementIds as $elementId)
    {
      $res = $res && $this->db->execute("DELETE FROM `{$this->mySqlTablePrefix}elementAlbum` WHERE `owner`=:owner AND `element`=:elementId AND `album`=:albumId AND `type`=:type",
        array(':owner' => $this->owner, ':elementId' => $elementId, ':albumId' => $albumId, ':type' => $type));
    }
    return $res !== false;
  }
public function postAlbumRemove ( $ albumId , $ type , $ elementIds ) { $ res = true ; foreach ( $ elementIds as $ elementId ) { $ res = $ res && $ this -> db -> execute ( " DELETE FROM ` { $ this -> mySqlTablePrefix } elementAlbum` WHERE `owner`=:owner AND `element`=:elementId AND `album`=:albumId AND `type`=:type " , array ( ':owner' => $ this -> owner , ':elementId' => $ elementId , ':albumId' => $ albumId , ':type' => $ type ) ) ; } return $ res !== false ; }
Remove an element from an album
 @param string $albumId ID of the album to update.
Remove an element from an album @param string $albumId ID of the album to update .