/**
  * Class constructor that instantiate the free and pro library, if installed
  */
 public function __construct($namespace)
 {
     parent::__construct($namespace, 'component');
     JModelLegacy::addIncludePath(JPATH_COMPONENT . '/models');
     JTable::addIncludePath(JPATH_COMPONENT . '/tables');
     $this->loadLibrary();
 }
 /**
  * Class constructor that instantiate the free and pro library, if installed
  *
  * @param string $namespace  Namespace
  * @param object $module     The base module, instance of stdClass
  */
 public function __construct($namespace, $module = null)
 {
     parent::__construct($namespace, 'module');
     $this->loadLibrary();
     if (is_object($module)) {
         $this->id = $module->id;
         $this->title = $module->title;
         $this->module = $module->module;
         $this->position = $module->position;
         $this->content = $module->content;
         $this->showtitle = $module->showtitle;
         $this->menuid = $module->menuid;
         $this->name = $module->name;
         $this->style = $module->style;
         $this->params = new JRegistry($module->params);
     }
 }
Esempio n. 3
0
 /**
  * Class constructor that instantiate the free and pro library, if installed
  */
 public function __construct($namespace)
 {
     parent::__construct($namespace, 'component');
     $this->loadLibrary();
 }
Esempio n. 4
0
 /**
  * Class constructor that instantiate the free and pro library, if installed
  */
 public function __construct($namespace)
 {
     parent::__construct($namespace, 'module');
     $this->loadLibrary();
 }