/**
  * Constructor
  *
  * Prevent creating instances of this class by making the contructor private
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     if (JFactory::getConfig()->getValue('config.caching')) {
         $this->_cache = JFactory::getCache('database', 'output');
     }
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * Prevent creating instances of this class by making the constructor private
  *
  * @param   KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     if (JFactory::getApplication()->getCfg('caching')) {
         $this->_cache = JFactory::getCache('com_koowa.tables', 'output');
     }
 }
Esempio n. 3
0
	/**
	 * Constructor
	 *
	 * Prevent creating instances of this class by making the contructor private
	 * 
	 * @param 	object 	An optional KConfig object with configuration options
	 */
	public function __construct(KConfig $config)
	{
		parent::__construct($config);
	
		if(KFactory::get('joomla:config')->getValue('config.caching')) {
	        $this->_cache = KFactory::get('joomla:cache', array('database', 'output'));
		}
	}
Esempio n. 4
0
 /**
  * Constructor
  *
  * Prevent creating instances of this class by making the contructor private
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $cache = version_compare(JVERSION, '3.0', 'ge') ? JFactory::getConfig()->get('caching') : JFactory::getConfig()->getValue('config.caching');
     if ($cache) {
         $this->_cache = JFactory::getCache('database', 'output');
     }
 }