|
|
@@ -127,6 +127,12 @@ class BxDolStudioInstaller extends BxDolInstallerUtils
|
|
|
'unregister_transcoders' => array(
|
|
|
'title' => _t('_adm_txt_modules_unregister_transcoders'),
|
|
|
),
|
|
|
+ 'register_esearches' => array(
|
|
|
+ 'title' => _t('_adm_txt_modules_register_esearches'),
|
|
|
+ ),
|
|
|
+ 'unregister_esearches' => array(
|
|
|
+ 'title' => _t('_adm_txt_modules_unregister_esearches'),
|
|
|
+ ),
|
|
|
'clear_db_cache' => array(
|
|
|
'title' => _t('_adm_txt_modules_clear_db_cache'),
|
|
|
),
|
|
|
@@ -846,6 +852,38 @@ class BxDolStudioInstaller extends BxDolInstallerUtils
|
|
|
return BX_DOL_STUDIO_INSTALLER_SUCCESS;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * Register the list of extended search forms provided in config array.
|
|
|
+ * @param string $sOperation - operation type.
|
|
|
+ */
|
|
|
+ protected function actionRegisterEsearches($sOperation)
|
|
|
+ {
|
|
|
+ if(empty($this->_aConfig['esearches']))
|
|
|
+ return BX_DOL_STUDIO_INSTALLER_FAILED;
|
|
|
+
|
|
|
+ foreach($this->_aConfig['esearches'] as $sObject)
|
|
|
+ BxDolSearchExtended::getObjectInstance($sObject);
|
|
|
+
|
|
|
+ return BX_DOL_STUDIO_INSTALLER_SUCCESS;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * Unregister the list of extended search forms provided in config array.
|
|
|
+ * @param string $sOperation - operation type.
|
|
|
+ */
|
|
|
+ protected function actionUnregisterEsearches($sOperation)
|
|
|
+ {
|
|
|
+ if(empty($this->_aConfig['esearches']))
|
|
|
+ return BX_DOL_STUDIO_INSTALLER_FAILED;
|
|
|
+
|
|
|
+ foreach($this->_aConfig['esearches'] as $sObject)
|
|
|
+ BxDolSearchExtended::getObjectInstance($sObject)->clean();
|
|
|
+
|
|
|
+ return BX_DOL_STUDIO_INSTALLER_SUCCESS;
|
|
|
+ }
|
|
|
+
|
|
|
protected function actionClearDbCache($sOperation)
|
|
|
{
|
|
|
$oCache = $this->oDb->getDbCacheObject();
|