response->addHTML( $this->template->render('server/sub_page_header', [ 'type' => 'collations', ]) ); $this->response->addHTML( $this->_getHtmlForCharsets( Charsets::getMySQLCharsets($this->dbi, $disableIs), Charsets::getMySQLCollations($this->dbi, $disableIs), Charsets::getMySQLCharsetsDescriptions($this->dbi, $disableIs), Charsets::getMySQLCollationsDefault($this->dbi, $disableIs) ) ); } /** * Returns the html for server Character Sets and Collations. * * @param array $mysqlCharsets Mysql Charsets list * @param array $mysqlCollations Mysql Collations list * @param array $mysqlCharsetsDesc Charsets descriptions * @param array $mysqlDftCollations Default Collations list * * @return string */ public function _getHtmlForCharsets( array $mysqlCharsets, array $mysqlCollations, array $mysqlCharsetsDesc, array $mysqlDftCollations ): string { return $this->template->render('server/collations/charsets', [ 'mysql_charsets' => $mysqlCharsets, 'mysql_collations' => $mysqlCollations, 'mysql_charsets_desc' => $mysqlCharsetsDesc, 'mysql_dft_collations' => $mysqlDftCollations, ]); } }