當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PMA_getHtmlForDropDatabaseLink函數代碼示例

本文整理匯總了PHP中PMA_getHtmlForDropDatabaseLink函數的典型用法代碼示例。如果您正苦於以下問題:PHP PMA_getHtmlForDropDatabaseLink函數的具體用法?PHP PMA_getHtmlForDropDatabaseLink怎麽用?PHP PMA_getHtmlForDropDatabaseLink使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了PMA_getHtmlForDropDatabaseLink函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ob_get_contents

 $content = ob_get_contents();
 ob_end_clean();
 $response->addHTML($content);
 $response->addHTML('</div>');
 /**
  * rename database
  */
 if ($db != 'mysql') {
     $response->addHTML(PMA_getHtmlForRenameDatabase($db));
 }
 // 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'])) {
開發者ID:pombredanne,項目名稱:ArcherSys,代碼行數:31,代碼來源:db_operations.php

示例2:

 }
 $response->addHTML('<div class="operations_half_width">');
 $response->addHTML(PMA_getHtmlForCreateTable($db));
 $response->addHTML('</div>');
 /**
  * rename database
  */
 if ($GLOBALS['db'] != 'mysql') {
     $response->addHTML(PMA_getHtmlForRenameDatabase($GLOBALS['db']));
 }
 // 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'])) {
開發者ID:flash1452,項目名稱:phpmyadmin,代碼行數:31,代碼來源:db_operations.php

示例3: testGetHtmlForDropDatabaseLink

 /**
  * Test for PMA_getHtmlForDropDatabaseLink
  *
  * @return void
  */
 public function testGetHtmlForDropDatabaseLink()
 {
     $this->assertRegExp('/.*DROP.DATABASE.*db_operations.php.*Drop the database.*/', PMA_getHtmlForDropDatabaseLink("pma"));
 }
開發者ID:FilipeRamosFernandes,項目名稱:phpmyadmin,代碼行數:9,代碼來源:PMA_operations_test.php


注:本文中的PMA_getHtmlForDropDatabaseLink函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。