/** * * @see ThemeHouse_NoForo_Model_NoForo::rebuildForum() */ public function rebuildForum() { $this->_rebuildPermissionsForAddOn('ThemeHouse_SocialGroups'); parent::rebuildForum(); // TODO: probably don't need to rebuild the entire add-on ThemeHouse_Install::install(array(), array('addon_id' => 'ThemeHouse_SocialGroups')); }
public function execute(array $deferred, array $data, $targetRunTime, &$status) { if (isset($data['install']) && $data['install']) { $result = ThemeHouse_Install::postInstall($data, $targetRunTime, $status); } elseif (isset($data['uninstall']) && $data['uninstall']) { $result = ThemeHouse_Install::postUninstall($data, $targetRunTime, $status); } else { $result = true; } if ($result === true) { return false; } else { return $data; } }
protected function _checkJustUninstalled() { $justUninstalled = XenForo_Application::getSimpleCacheData(self::JUST_UNINSTALLED_SIMPLE_CACHE_KEY); if ($justUninstalled) { $db = XenForo_Application::get('db'); foreach ($justUninstalled as $addOnId) { if (method_exists('ThemeHouse_Install', 'postUninstall')) { if (ThemeHouse_Install::postUninstall(array('addon_id' => $addOnId)) === false) { return false; } } } XenForo_Application::setSimpleCacheData(self::JUST_UNINSTALLED_SIMPLE_CACHE_KEY, array()); } }
/** * * @param string $tableName * @return boolean */ protected final function _isTableExists($tableName) { if (!self::$_tablesList) { self::$_tablesList = array_map('strtolower', $this->_db->listTables()); } return in_array(strtolower($tableName), self::$_tablesList); }