parent can be assumed to be a WebInstaller. */ abstract public function getHtml(); /** * Set variables based on the request array, assuming it was submitted * via the form returned by getConnectForm(). Validate the connection * settings by attempting to connect with them. * * If this is called, $this->parent can be assumed to be a WebInstaller. * * @return Status */ abstract public function submit(); /** * Get a standard install-user fieldset. * * @return string */ protected function getInstallUserBox() { return "" . Html::element( 'span', [ 'class' => 'cdx-card__text__title' ], wfMessage( 'config-db-install-account' )->text() ) . "" . $this->getTextBox( '_InstallUser', 'config-db-username', [ 'dir' => 'ltr' ], $this->webInstaller->getHelpBox( 'config-db-install-username' ) ) . $this->getPasswordBox( '_InstallPassword', 'config-db-password', [ 'dir' => 'ltr' ], $this->webInstaller->getHelpBox( 'config-db-install-password' ) ) . ""; } /** * Submit a standard install user fieldset. * @return Status */ protected function submitInstallUserBox() { $this->setVarsFromRequest( [ '_InstallUser', '_InstallPassword' ] ); return Status::newGood(); } }