getResId(); $path = violetUtil::getSpacePath(true) . floor($resId/1000).'/'.$resId; if ($create && !file_exists($path)) mkdir($path, 0777, true); return $path; } public function getFullFilename($create = false) { return $this->getResPath($create).'/'.$this->getResFilename(); } public function delete(PropelPDO $con = null) { $path = $this->getResPath(); unlink($path.'/'.$this->getResFilename()); rmdir($path); parent::delete($con); } }