예제 #1
0
 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();
 }
예제 #2
0
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new sfPhotoGalleryPeer();
     }
     return self::$peer;
 }