コード例 #1
0
 /**
  * Constructor.
  *
  * @param object $objModule
  * @param string $strColumn
  */
 public function __construct($objModule, $strColumn = 'main')
 {
     parent::__construct($objModule, $strColumn);
     $this->iso_filterModules = deserialize($this->iso_filterModules);
     $this->iso_productcache = deserialize($this->iso_productcache);
     if (!is_array($this->iso_filterModules)) {
         $this->iso_filterModules = array();
     }
     if (!is_array($this->iso_productcache)) {
         $this->iso_productcache = array();
     }
 }
コード例 #2
0
ファイル: Module.php プロジェクト: Aziz-JH/core
 /**
  * Load libraries and scripts
  * @param object
  * @param string
  * @return void
  */
 public function __construct($objModule, $strColumn = 'main')
 {
     parent::__construct($objModule, $strColumn);
     Isotope::initialize();
     if (TL_MODE == 'FE') {
         // Load Isotope javascript and css
         $GLOBALS['TL_JAVASCRIPT'][] = \Haste\Util\Debug::uncompressedFile('system/modules/isotope/assets/js/isotope.min.js');
         $GLOBALS['TL_CSS'][] = \Haste\Util\Debug::uncompressedFile('system/modules/isotope/assets/css/isotope.min.css');
         // Disable caching for pages with certain modules (eg. Cart)
         if ($this->blnDisableCache) {
             try {
                 global $objPage;
                 $objPage->cache = 0;
             } catch (\Exception $e) {
             }
         }
     }
 }
コード例 #3
0
 /**
  * Constructor.
  *
  * @param \ModuleModel|object $objModule
  * @param string $strColumn
  */
 public function __construct($objModule, $strColumn = 'main')
 {
     parent::__construct($objModule, $strColumn);
     \Controller::loadDataContainer('tl_iso_product');
     \System::loadLanguageFile('tl_iso_product');
     $this->iso_filterFields = deserialize($this->iso_filterFields);
     $this->iso_sortingFields = deserialize($this->iso_sortingFields);
     $this->iso_searchFields = deserialize($this->iso_searchFields);
     if (!is_array($this->iso_filterFields)) {
         $this->iso_filterFields = array();
     }
     if (!is_array($this->iso_sortingFields)) {
         $this->iso_sortingFields = array();
     }
     if (!is_array($this->iso_searchFields)) {
         $this->iso_searchFields = array();
     }
 }
コード例 #4
0
ファイル: Module.php プロジェクト: ralfhartmann/isotope_core
 /**
  * Load libraries and scripts
  *
  * @param \ModuleModel $objModule
  * @param string $strColumn
  */
 public function __construct($objModule, $strColumn = 'main')
 {
     parent::__construct($objModule, $strColumn);
     if ($this->iso_list_where != '') {
         $this->iso_list_where = Haste::getInstance()->call('replaceInsertTags', $this->iso_list_where);
     }
     $this->iso_buttons = deserialize($this->iso_buttons);
     if (!is_array($this->iso_buttons)) {
         $this->iso_buttons = array();
     }
     Isotope::initialize();
     // Load Isotope JavaScript and style sheet
     if (TL_MODE == 'FE') {
         $version = RepositoryVersion::encode(Isotope::VERSION);
         $GLOBALS['TL_JAVASCRIPT'][] = Debug::uncompressedFile('system/modules/isotope/assets/js/isotope.min.js|static|' . $version);
         $GLOBALS['TL_CSS'][] = Debug::uncompressedFile('system/modules/isotope/assets/css/isotope.min.css|screen|static|' . $version);
         // Disable caching for pages with certain modules (eg. Cart)
         if ($this->blnDisableCache) {
             global $objPage;
             $objPage->cache = 0;
         }
     }
 }