/**
  * Enables an extension
  *
  * @param  $extensionKey
  * @return void
  */
 public function enableExtension($extensionKey)
 {
     $this->extensionList = t3lib_div::makeInstance('tx_em_Extensions_List', $this);
     $install = t3lib_div::makeInstance('tx_em_Install', $this);
     list($installedList, ) = $this->extensionList->getInstalledExtensions();
     $newExtensionList = $this->extensionList->addExtToList($extensionKey, $installedList);
     $install->writeNewExtensionList($newExtensionList);
     tx_em_Tools::refreshGlobalExtList();
     $install->forceDBupdates($extensionKey, $installedList[$extensionKey]);
 }
Ejemplo n.º 2
0
 /**
  * Returns the list of available (installed) extensions
  *
  * @return	array		Array with two arrays, list array (all extensions with info) and category index
  * @wrapper for compatibility
  */
 public function getInstalledExtensions()
 {
     return $this->extensionList->getInstalledExtensions();
 }