Exemple #1
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->defines = Citruscart::getInstance();
     if (JDEBUG) {
         $this->cache_enabled = false;
     }
 }
Exemple #2
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     if (!empty($this->option)) {
         $option = $this->option;
     } else {
         $r = null;
         if (!preg_match('/(.*)Model/i', get_class($this), $r)) {
             JError::raiseError(500, JText::_('JLIB_APPLICATION_ERROR_MODEL_GET_NAME'));
         }
         $option = 'com_' . strtolower($r[1]);
     }
     $lang = JFactory::getLanguage();
     $lang->load($option);
     $lang->load($option, JPATH_ADMINISTRATOR);
 }