Exemplo n.º 1
0
 public function deleteObject()
 {
     // Remove file itself
     if (file_exists(DIR_BASE . $this->getImage())) {
         unlink(DIR_BASE . $this->getImage());
     }
     parent::deleteObject();
 }
Exemplo n.º 2
0
 public function deleteObject()
 {
     // Remove file itself
     $path = $this->getPath();
     if (file_exists(DIR_BASE . $path)) {
         unlink(DIR_BASE . $path);
     }
     parent::deleteObject();
 }