src/libraries/adapters/DatabaseMySql.php
/**
    * Delete a photos versions excluding base and original
    *
    * @param string $id ID of the photo to delete versions of
    * @return boolean
    */
Delete a photos versions excluding base and original
@param string $id ID of the photo to delete versions of
@return boolean
Delete a photos versions excluding base and original @param string $id ID of the photo to delete versions of @return boolean
public function deletePhotoVersions($photo)
  {
    if(!isset($photo['id']))
      return false;
    $res = $this->db->execute("DELETE FROM `{$this->mySqlTablePrefix}photoVersion` WHERE `owner`=:owner AND `id`=:id", array(':id' => $photo['id'], ':owner' => $this->owner));
    return $res !== false;
  }
public function deletePhotoVersions ( $ photo ) { if ( ! isset ( $ photo [ 'id' ] ) ) return false ; $ res = $ this -> db -> execute ( " DELETE FROM ` { $ this -> mySqlTablePrefix } photoVersion` WHERE `owner`=:owner AND `id`=:id " , array ( ':id' => $ photo [ 'id' ] , ':owner' => $ this -> owner ) ) ; return $ res !== false ; }
Delete a photos versions excluding base and original
 @param string $id ID of the photo to delete versions of
 @return boolean
Delete a photos versions excluding base and original @param string $id ID of the photo to delete versions of @return boolean