- $s .= Xml::openElement( 'div', [
- 'id' => 'dbMyisamWarning'
- ] );
- $myisamWarning = 'config-mysql-myisam-dep';
- if ( count( $engines ) === 1 ) {
- $myisamWarning = 'config-mysql-only-myisam-dep';
- }
- $s .= $this->parent->getWarningBox( wfMessage( $myisamWarning )->text() );
- $s .= Xml::closeElement( 'div' );
-
- if ( $this->getVar( '_MysqlEngine' ) != 'MyISAM' ) {
- $s .= Xml::openElement( 'script' );
- $s .= '$(\'#dbMyisamWarning\').hide();';
- $s .= Xml::closeElement( 'script' );
- }
-
- if ( count( $engines ) >= 2 ) {
- // getRadioSet() builds a set of labeled radio buttons.
- // For grep: The following messages are used as the item labels:
- // config-mysql-innodb, config-mysql-myisam
- $s .= $this->getRadioSet( [
- 'var' => '_MysqlEngine',
- 'label' => 'config-mysql-engine',
- 'itemLabelPrefix' => 'config-mysql-',
- 'values' => $engines,
- 'itemAttribs' => [
- 'MyISAM' => [
- 'class' => 'showHideRadio',
- 'rel' => 'dbMyisamWarning'
- ],
- 'InnoDB' => [
- 'class' => 'hideShowRadio',
- 'rel' => 'dbMyisamWarning'
- ]
- ]
- ] );
- $s .= $this->parent->getHelpBox( 'config-mysql-engine-help' );
- }
-