Exemplo n.º 1
0
 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';
 }
Exemplo n.º 2
0
Arquivo: sync.php Projeto: rodhoff/MNW
 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);
 }
Exemplo n.º 3
0
Arquivo: main.php Projeto: rodhoff/MNW
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 4
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->app = JFactory::getApplication();
 }
Exemplo n.º 5
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     jimport('joomla.filesystem.file');
     jimport('joomla.application.component.helper');
 }
Exemplo n.º 6
0
 public function __construct()
 {
     jimport('joomla.filesystem.file');
     parent::__construct();
 }