_aTranscoders); if ($this->_bUpdateTimeline && BxDolRequest::serviceExists('timeline', 'add_handlers')) BxDolService::call('timeline', 'add_handlers', array($this->_aConfig['home_uri'])); return $aResult; } function disable($aParams) { if ($this->_bUpdateTimeline && BxDolRequest::serviceExists('timeline', 'delete_handlers')) BxDolService::call('timeline', 'delete_handlers', array($this->_aConfig['home_uri'])); BxDolImageTranscoder::unregisterHandlersArray($this->_aTranscoders); BxDolImageTranscoder::cleanupObjectsArray($this->_aTranscoders); $aResult = parent::disable($aParams); if (!$aResult['result']) // we need to register it back if disabling failed BxDolImageTranscoder::registerHandlersArray($this->_aTranscoders); return $aResult; } function install($aParams, $bEnable = false) { return parent::install($aParams, $bEnable); } function uninstall($aParams, $bDisable = false) { bx_import('BxDolInstallerUtils'); if (BxDolInstallerUtils::isModulePendingUninstall($this->_aConfig['home_uri'])) return array( 'message' => _t('_adm_err_modules_pending_uninstall_already'), 'result' => false, ); $bSetModulePendingUninstall = false; foreach ($this->_aStorages as $s) { if (($o = BxDolStorage::getObjectInstance($s)) && $o->queueFilesForDeletionFromObject()) $bSetModulePendingUninstall = true; } if ($bSetModulePendingUninstall) { BxDolInstallerUtils::setModulePendingUninstall($this->_aConfig['home_uri']); return array( 'message' => _t('_adm_err_modules_pending_uninstall'), 'result' => false, ); } return parent::uninstall($aParams, $bDisable); } } /** @} */