本文整理汇总了PHP中PMA_getHtmlForChangeDatabaseCharset函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_getHtmlForChangeDatabaseCharset函数的具体用法?PHP PMA_getHtmlForChangeDatabaseCharset怎么用?PHP PMA_getHtmlForChangeDatabaseCharset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PMA_getHtmlForChangeDatabaseCharset函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
}
// Drop link if allowed
// Don't even try to drop information_schema.
// You won't be able to. Believe me. You won't.
// Don't allow to easily drop mysql database, RFE #1327514.
if (($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) && !$db_is_system_schema && $GLOBALS['db'] != 'mysql') {
$response->addHTML(PMA_getHtmlForDropDatabaseLink($GLOBALS['db']));
}
/**
* Copy database
*/
$response->addHTML(PMA_getHtmlForCopyDatabase($GLOBALS['db']));
/**
* Change database charset
*/
$response->addHTML(PMA_getHtmlForChangeDatabaseCharset($GLOBALS['db'], $table));
if (!$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) {
$message = PMA\libraries\Message::notice(__('The phpMyAdmin configuration storage has been deactivated. ' . '%sFind out why%s.'));
$message->addParam('<a href="' . './chk_rel.php' . $url_query . '">', false);
$message->addParam('</a>', false);
/* Show error if user has configured something, notice elsewhere */
if (!empty($cfg['Servers'][$server]['pmadb'])) {
$message->isError(true);
}
}
// end if
}
// end if (!$is_information_schema)
$response->addHTML('</div>');
// not sure about displaying the PDF dialog in case db is information_schema
if ($cfgRelation['pdfwork'] && $num_tables > 0) {
示例2: testGetHtmlForChangeDatabaseCharset
/**
* Test for PMA_getHtmlForChangeDatabaseCharset
*
* @return void
*/
public function testGetHtmlForChangeDatabaseCharset()
{
$_REQUEST['db_collation'] = 'db1';
$this->assertRegExp('/.*db_operations.php(.|[\\n])*select_db_collation([\\n]|.)*Collation.*/m', PMA_getHtmlForChangeDatabaseCharset("pma", "bookmark"));
}
示例3:
}
// Drop link if allowed
// Don't even try to drop information_schema.
// You won't be able to. Believe me. You won't.
// Don't allow to easily drop mysql database, RFE #1327514.
if (($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) && !$db_is_system_schema && (PMA_DRIZZLE || $db != 'mysql')) {
$response->addHTML(PMA_getHtmlForDropDatabaseLink($db));
}
/**
* Copy database
*/
$response->addHTML(PMA_getHtmlForCopyDatabase($db));
/**
* Change database charset
*/
$response->addHTML(PMA_getHtmlForChangeDatabaseCharset($db, $table));
if ($num_tables > 0 && !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) {
$message = PMA_Message::notice(__('The phpMyAdmin configuration storage has been deactivated. To find out why click %shere%s.'));
$message->addParam('<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">', false);
$message->addParam('</a>', false);
/* Show error if user has configured something, notice elsewhere */
if (!empty($cfg['Servers'][$server]['pmadb'])) {
$message->isError(true);
}
$response->addHTML('<div class="operations_full_width">');
$response->addHTML($message->getDisplay());
$response->addHTML('</div>');
}
// end if
}
// end if (!$is_information_schema)
示例4: testGetHtmlForChangeDatabaseCharset
/**
* Test for PMA_getHtmlForChangeDatabaseCharset
*
* @return void
*/
public function testGetHtmlForChangeDatabaseCharset()
{
$_REQUEST['db_collation'] = 'db1';
$result = PMA_getHtmlForChangeDatabaseCharset("pma", "bookmark");
$this->assertRegExp('/.*select_db_collation.*Collation.*/m', $result);
$this->assertRegExp('/.*db_operations.php.*/', $result);
}