src/libraries/adapters/DatabaseSimpleDb.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;
    $res = $this->db->delete_attributes($this->domainPhoto, $photo['id']);
    $this->logErrors($res);
    return $res->isOK();
  }
public function deletePhoto ( $ photo ) { if ( ! isset ( $ photo [ 'id' ] ) ) return false ; $ res = $ this -> db -> delete_attributes ( $ this -> domainPhoto , $ photo [ 'id' ] ) ; $ this -> logErrors ( $ res ) ; return $ res -> isOK ( ) ; }
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