예제 #1
0
 /**
  * @param GalleryImage $image
  */
 private function manageFileUpload(GalleryImage $image)
 {
     if ($image->getFile()) {
         $image->refreshUpdated();
     }
 }
예제 #2
0
파일: Gallery.php 프로젝트: stereomon/karo
 /**
  * @param GalleryImage $image
  */
 protected function addYearIfNotSet(GalleryImage $image)
 {
     if ($image->getYear()) {
         $image->setYear($this->getYear());
     }
 }