Example #1
0
 /**
  * Constructor
  *
  * @param	array	$config		The configuration
  */
 public function __construct($config)
 {
     parent::__construct($config);
     $this->item = $this->getModel('library')->getItem($config['item_id']);
     $this->languages = $this->item->params["languages"];
     $this->prefix = 'LIB_' . str_replace(' ', '_', strtoupper($this->item->name));
     $this->createDir = $this->item->createDir . "/language";
     $this->element = "lib_" . strtolower($this->item->name);
     if (empty($this->languages)) {
         $this->languages = array('en-GB');
     }
 }
Example #2
0
 /**
  * Constructor
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->item = $this->getModel('plugin')->getItem($config['item_id']);
     $this->createDir = $this->item->createDir . "/language";
     $this->element = "plg_" . strtolower($this->item->folder) . "_" . strtolower($this->item->name);
     // Language
     $this->languages = $this->item->params['languages'];
     $this->prefix = "PLG_" . strtoupper($this->item->folder) . "_" . strtoupper($this->item->name);
     if (empty($this->languages)) {
         $this->languages = array('en-GB');
     }
 }
Example #3
0
 /**
  * Constructor
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->item = JModelLegacy::getInstance("Template", "JDeveloperModel")->getItem($config['item_id']);
     $this->createDir = $this->item->createDir . "/language";
     $this->element = "tpl_" . strtolower($this->item->name);
     // Language
     $this->languages = $this->item->params['languages'];
     $this->prefix = "";
     if (empty($this->languages)) {
         $this->languages = array('en-GB');
     }
 }