getProductId(); } public function getFilePath() { return $this->getFileDir().'/'.$this->getFilename(); } public function delete($con = null) { $ret = parent::delete($con); if (is_file($this->getFilePath())) { unlink($this->getFilePath()); } return $ret; } }