public function __construct($config = array()) { parent::__construct($config); $cacheOptions = array(); $cacheOptions['caching'] = true; $cacheOptions['lifetime'] = 60 * 24; $cacheOptions['cachebase'] = JPATH_ADMINISTRATOR . '/cache'; $cacheOptions['defaultgroup'] = $this->cacheGroup; if (!defined('JOOMLAMAILER_VERSION') || !defined('JOOMLAMAILER_DATE')) { $cacheID = 'jmVersion'; if (!$this->cache($this->cacheGroup)->get($cacheID, $this->cacheGroup)) { $db = JFactory::getDbo(); $query = $db->getQuery(true)->select($db->qn('manifest_cache'))->from('#__extensions')->where($db->qn('type') . ' = ' . $db->q('component'))->where($db->qn('element') . ' = ' . $db->q('com_joomailermailchimpintegration')); $db->setQuery($query); $manifest = $db->loadResult(); $this->cache($this->cacheGroup)->store($manifest, $cacheID, $this->cacheGroup); } $manifest = json_decode($this->cache($this->cacheGroup)->get($cacheID, $this->cacheGroup)); if (!defined('JOOMLAMAILER_VERSION')) { define('JOOMLAMAILER_VERSION', $manifest->version); } if (!defined('JOOMLAMAILER_DATE')) { define('JOOMLAMAILER_DATE', $manifest->creationDate); } } $this->remoteVersionCache = JPATH_ADMINISTRATOR . '/cache/joomlamailerUpdate/remote_version.ini'; }
public function __construct() { parent::__construct(); $mainframe = JFactory::getApplication(); $option = JRequest::getCmd('option'); // Get pagination request variables $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); // In case limit has been changed, adjust it $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); }
public function __construct() { parent::__construct(); }
public function __construct($config = array()) { parent::__construct($config); $this->app = JFactory::getApplication(); }
public function __construct($config = array()) { parent::__construct($config); jimport('joomla.filesystem.file'); jimport('joomla.application.component.helper'); }
public function __construct() { jimport('joomla.filesystem.file'); parent::__construct(); }