/** * Removes a photo by its associated id * * @param string $id Photo's id * @return boolean */ public function deleteById($id) { $name = Filter::escape($this->photoMapper->fetchNameById($id)); if ($this->delete($id)) { $this->track('The photo "%s" has been removed', $name); return true; } else { return false; } }