当前位置: 首页>>代码示例>>PHP>>正文


PHP PMA_getHtmlForRenameDatabase函数代码示例

本文整理汇总了PHP中PMA_getHtmlForRenameDatabase函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_getHtmlForRenameDatabase函数的具体用法?PHP PMA_getHtmlForRenameDatabase怎么用?PHP PMA_getHtmlForRenameDatabase使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PMA_getHtmlForRenameDatabase函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testGetHtmlForRenameDatabase

 /**
  * Test for PMA_getHtmlForRenameDatabase
  *
  * @return void
  */
 public function testGetHtmlForRenameDatabase()
 {
     $_REQUEST['db_collation'] = 'db1';
     $html = PMA_getHtmlForRenameDatabase("pma");
     $this->assertContains('db_operations.php', $html);
     $this->assertRegExp('/.*db_rename.*Rename database to.*/', $html);
 }
开发者ID:pboutin44,项目名称:maintest,代码行数:12,代码来源:PMA_operations_test.php

示例2: testGetHtmlForRenameDatabase

    /**
     * Test for PMA_getHtmlForRenameDatabase
     *
     * @return void
     */
    public function testGetHtmlForRenameDatabase()
    {

        $_REQUEST['db_collation'] = 'db1';
        $this->assertRegExp(
            '/.*db_operations.php(.|[\n])*db_rename([\n]|.)*Rename database to.*/m',
            PMA_getHtmlForRenameDatabase("pma")
        );
    }
开发者ID:nhodges,项目名称:phpmyadmin,代码行数:14,代码来源:PMA_operations_test.php

示例3:

$response->addHTML('<div id="boxContainer" data-box-width="300">');
if (!$is_information_schema) {
    if ($cfgRelation['commwork']) {
        /**
         * database comment
         */
        $response->addHTML(PMA_getHtmlForDatabaseComment($GLOBALS['db']));
    }
    $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
     */
开发者ID:flash1452,项目名称:phpmyadmin,代码行数:31,代码来源:db_operations.php

示例4: ob_start

      * database comment
      */
     $response->addHTML(PMA_getHtmlForDatabaseComment($db));
 }
 $response->addHTML('<div class="operations_half_width">');
 ob_start();
 include 'libraries/display_create_table.lib.php';
 $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
  */
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:db_operations.php


注:本文中的PMA_getHtmlForRenameDatabase函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。