src/libraries/adapters/DatabaseMySql.php
/**
    * Delete a photo in it's entirety from the database
    *
    * @param string $id ID of the photo to delete
    * @return boolean
    */
Delete a photo in it's entirety from the database
@param string $id ID of the photo to delete
@return boolean
Delete a photo in it ' s entirety from the database @param string $id ID of the photo to delete @return boolean
public function deletePhoto($photo)
  {
    if(!isset($photo['id']))
      return false;
    $resPhoto = $this->db->execute("DELETE FROM `{$this->mySqlTablePrefix}photo` WHERE `id`=:id AND owner=:owner", array(':id' => $photo['id'], ':owner' => $this->owner));
    $resVersions = $this->deletePhotoVersions($photo);
    return ($resPhoto !== false && $resVersions !== false);
  }
public function deletePhoto ( $ photo ) { if ( ! isset ( $ photo [ 'id' ] ) ) return false ; $ resPhoto = $ this -> db -> execute ( " DELETE FROM ` { $ this -> mySqlTablePrefix } photo` WHERE `id`=:id AND owner=:owner " , array ( ':id' => $ photo [ 'id' ] , ':owner' => $ this -> owner ) ) ; $ resVersions = $ this -> deletePhotoVersions ( $ photo ) ; return ( $ resPhoto !== false && $ resVersions !== false ) ; }
Delete a photo in it's entirety from the database
 @param string $id ID of the photo to delete
 @return boolean
Delete a photo in it ' s entirety from the database @param string $id ID of the photo to delete @return boolean