src/libraries/adapters/DatabaseMySql.php
/**
    * Add an element to 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
    */
Add an element to 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
Add an element to 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 postAlbumAdd($albumId, $type, $elementIds)
  {
    $res = true;
    foreach($elementIds as $elementId)
    {
      $tmpRes = $this->db->execute("REPLACE INTO `{$this->mySqlTablePrefix}elementAlbum`(`owner`,`type`,`element`,`album`) VALUES(:owner,:type,:elementId,:albumId)",
        array(':owner' => $this->owner, ':type' => $type, ':elementId' => $elementId, ':albumId' => $albumId));
      $res = $res && $tmpRes !== 0;
    }
    return $res !== false;
  }
public function postAlbumAdd ( $ albumId , $ type , $ elementIds ) { $ res = true ; foreach ( $ elementIds as $ elementId ) { $ tmpRes = $ this -> db -> execute ( " REPLACE INTO ` { $ this -> mySqlTablePrefix } elementAlbum`(`owner`,`type`,`element`,`album`) VALUES(:owner,:type,:elementId,:albumId) " , array ( ':owner' => $ this -> owner , ':type' => $ type , ':elementId' => $ elementId , ':albumId' => $ albumId ) ) ; $ res = $ res && $ tmpRes !== 0 ; } return $ res !== false ; }
Add an element to an album
 @param string $albumId ID of the album to update.
Add an element to an album @param string $albumId ID of the album to update .