Esempio n. 1
0
 /**
  * @param   Doctrine_Event $event
  */
 public function preInsert(Doctrine_Event $event)
 {
     RokGallery_Model_SliceFilter::cleanThumbInfo();
     if (empty($this->title)) {
         $this->title = $this->File->title;
     }
     if (empty($this->caption)) {
         $this->caption = $this->File->description;
     }
     // set background color to transparent
     if (empty($this->thumb_background)) {
         $this->thumb_background = 'transparent';
     }
     $this->processImages();
 }
Esempio n. 2
0
 public static function cleanThumbInfo()
 {
     RokGallery_Model_SliceFilter::$slices = array();
 }