public function delete($con = null) { @unlink(sfConfig::get('sf_upload_dir') . '/thumbnails/tiny/' . $this->getRealName()); @unlink(sfConfig::get('sf_upload_dir') . '/thumbnails/small/' . $this->getRealName()); @unlink(sfConfig::get('sf_upload_dir') . '/thumbnails/medium/' . $this->getRealName()); @unlink(sfConfig::get('sf_upload_dir') . '/thumbnails/large/' . $this->getRealName()); @unlink(sfConfig::get('sf_upload_dir') . '/photos/' . $this->getRealName()); parent::delete(); }
public function getPeer() { if (self::$peer === null) { self::$peer = new sfPhotoGalleryPeer(); } return self::$peer; }