public function run($blnInstalled)
 {
     if ($blnInstalled && \Database::getInstance()->tableExists('tl_iso_gallery')) {
         $this->createDatabaseField('lightbox_template', 'tl_iso_gallery');
         $t = \Isotope\Model\Gallery::getTable();
         $this->objGaleries = \Isotope\Model\Gallery::findBy(array("{$t}.type='standard'", "{$t}.anchor='lightbox'", "lightbox_template IS NULL"), null);
         if (null !== $this->objGaleries) {
             $this->generate();
         }
     }
 }
Beispiel #2
0
 public function run($blnInstalled)
 {
     if ($blnInstalled && \Database::getInstance()->tableExists('tl_iso_gallery')) {
         if (!\Database::getInstance()->fieldExists('lightbox_template', 'tl_iso_gallery')) {
             \Database::getInstance()->query("\n                    ALTER TABLE tl_iso_gallery\n                    ADD COLUMN `lightbox_template` blob NULL\n                ");
         }
         $t = \Isotope\Model\Gallery::getTable();
         $this->objGaleries = \Isotope\Model\Gallery::findBy(array("{$t}.type='standard'", "{$t}.anchor='lightbox'", "lightbox_template IS NULL"), null);
         if (null !== $this->objGaleries) {
             $this->generate();
         }
     }
 }