Example #1
0
 /**
  * pretizeno o mazani titulni fotky
  */
 public function delete()
 {
     try {
         $this->deletePhoto();
         parent::delete();
     } catch (Exception $e) {
         throw $e;
     }
 }
 /**
  * pretizeno o mazani fotek
  */
 public function delete()
 {
     try {
         foreach ($this->getPhotos() as $photo) {
             $photo->delete();
         }
         @rmdir($this->getPathPhotos());
         parent::delete();
     } catch (Exception $e) {
         throw $e;
     }
 }
Example #3
0
 public function delete()
 {
     try {
         @unlink($this->getFilePath(true));
         parent::delete();
     } catch (Exception $e) {
         throw $e;
     }
 }