response->addHTML( Template::get('server/sub_page_header')->render([ 'type' => 'collations', ]) ); $this->response->addHTML( $this->_getHtmlForCharsets( Charsets::getMySQLCharsets($dbi, $disableIs), Charsets::getMySQLCollations($dbi, $disableIs), Charsets::getMySQLCharsetsDescriptions($dbi, $disableIs), Charsets::getMySQLCollationsDefault($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 */ function _getHtmlForCharsets(array $mysqlCharsets, array $mysqlCollations, array $mysqlCharsetsDesc, array $mysqlDftCollations ) { return Template::get('server/collations/charsets')->render( array( 'mysql_charsets' => $mysqlCharsets, 'mysql_collations' => $mysqlCollations, 'mysql_charsets_desc' => $mysqlCharsetsDesc, 'mysql_dft_collations' => $mysqlDftCollations, ) ); } }