Exemplo n.º 1
0
 public function install()
 {
     $result = parent::install();
     if ($result !== false) {
         $this->postInstall($result);
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  * Install the Editor Component
  * @return boolean
  */
 function installComponent()
 {
     $mainframe = JFactory::getApplication();
     $db = JFactory::getDBO();
     jimport('joomla.installer.installer');
     require_once JPATH_LIBRARIES . DS . 'joomla' . DS . 'installer' . DS . 'adapters' . DS . 'component.php';
     $installer = JInstaller::getInstance();
     $installer->setPath('source', dirname(dirname(__FILE__)));
     $component = new JInstallerComponent($installer, $db);
     $component->install();
     return $this->checkComponent();
 }