/** * 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; } }
public function delete() { try { @unlink($this->getFilePath(true)); parent::delete(); } catch (Exception $e) { throw $e; } }