public function __construct($fileType, $minify = false, $options = array()) { $this->fileType = $fileType; $this->minify = $minify; $this->options = $options; $this->options['minify'] = $this->minify; parent::__construct('combined', true); }
protected function setCurrentPath() { N2Cache::init(); if ($this->isAccessible) { $this->currentPath = self::$accessiblePath . NDS . $this->group; } else { $this->currentPath = self::$notAccessiblePath . NDS . $this->group; } if (!N2Filesystem::existsFolder($this->currentPath)) { N2Filesystem::createFolder($this->currentPath); } }
public function actionClearCache() { if ($this->validatePermission('smartslider_config')) { if ($this->validateToken()) { $slidersModel = new N2SmartsliderSlidersModel(); foreach ($slidersModel->getAll() as $slider) { $slidersModel->refreshCache($slider['id']); } N2Cache::clearGroup('n2-ss-0'); N2Cache::clearGroup('combined'); N2Message::success(n2_('Cache cleared.')); } $this->redirect(array("settings/default")); } }
public function __construct($group, $isAccessible = false, $isRaw = false) { parent::__construct($group, $isAccessible); $this->isRaw = $isRaw; }
function delete($id) { $slidesModel = new N2SmartsliderSlidesModel(); $slidesModel->deleteBySlider($id); $this->db->deleteByPk($id); N2Cache::clearGroup(N2SmartSliderAbstract::getCacheId($id)); N2Cache::clearGroup(N2SmartSliderAbstract::getAdminCacheId($id)); self::markChanged($id); }