Example #1
0
 /**
  * Deletes an image by its associated id
  * 
  * @param string $id Image's id
  * @return boolean
  */
 public function deleteById($id)
 {
     $name = Filter::escape($this->imageMapper->fetchNameById($id));
     if ($this->delete($id)) {
         $this->track('Slider "%s" has been removed', $name);
         return true;
     } else {
         return false;
     }
 }