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


PHP PMA_StorageEngine::isValid方法代码示例

本文整理汇总了PHP中PMA_StorageEngine::isValid方法的典型用法代码示例。如果您正苦于以下问题:PHP PMA_StorageEngine::isValid方法的具体用法?PHP PMA_StorageEngine::isValid怎么用?PHP PMA_StorageEngine::isValid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PMA_StorageEngine的用法示例。


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

示例1: PMA_getHtmlForServerEngines

/**
 * setup HTML for server Engines information
 *
 * @return string
 */
function PMA_getHtmlForServerEngines()
{
    /**
     * Did the user request information about a certain storage engine?
     */
    $html = '';
    if (empty($_REQUEST['engine']) || !PMA_StorageEngine::isValid($_REQUEST['engine'])) {
        $html .= PMA_getHtmlForAllServerEngines();
    } else {
        $html .= PMA_getHtmlForSpecifiedServerEngines();
    }
    return $html;
}
开发者ID:nervo,项目名称:phpmyadmin,代码行数:18,代码来源:server_engines.lib.php

示例2:

 * Does the common work
 */
require './libraries/server_common.inc.php';
require './libraries/StorageEngine.class.php';


/**
 * Displays the links
 */
require './libraries/server_links.inc.php';

/**
 * Did the user request information about a certain storage engine?
 */
if (empty($_REQUEST['engine'])
 || ! PMA_StorageEngine::isValid($_REQUEST['engine'])) {

    /**
     * Displays the sub-page heading
     */
    echo '<h2>' . "\n"
       . ($GLOBALS['cfg']['MainPageIconic']
            ? '<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
                .' width="16" height="16" alt="" />' : '')
       . "\n" . $strStorageEngines . "\n"
       . '</h2>' . "\n";


    /**
     * Displays the table header
     */
开发者ID:blumenbach,项目名称:blumenbach-online.de,代码行数:31,代码来源:server_engines.php

示例3: showCreatePageDialog

    /**
     * shows/displays the HTML FORM to create the page
     *
     * @param string $db name of the selected database
     *
     * @return void
     * @access public
     */
    public function showCreatePageDialog($db)
    {
        ?>
        <form method="post" action="schema_edit.php" name="frm_create_page">
        <fieldset>
        <legend>
        <?php 
        echo __('Create a page') . "\n";
        ?>
        </legend>
        <?php 
        echo PMA_generate_common_hidden_inputs($db);
        ?>
        <input type="hidden" name="do" value="createpage" />
        <table>
        <tr>
        <td><label for="id_newpage"><?php 
        echo __('Page name');
        ?>
</label></td>
        <td><input type="text" name="newpage" id="id_newpage" size="20" maxlength="50" /></td>
        </tr>
        <tr>
        <td><?php 
        echo __('Automatic layout based on');
        ?>
</td>
        <td>
        <input type="checkbox" name="auto_layout_internal" id="id_auto_layout_internal" /><label for="id_auto_layout_internal">
        <?php 
        echo __('Internal relations');
        ?>
</label><br />
        <?php 
        /*
         * Check to see whether INNODB and PBXT storage engines are Available in MYSQL PACKAGE
         * If available, then provide AutoLayout for Foreign Keys in Schema View
         */
        if (PMA_StorageEngine::isValid('InnoDB') || PMA_StorageEngine::isValid('PBXT')) {
            ?>
            <input type="checkbox" name="auto_layout_foreign" id="id_auto_layout_foreign" /><label for="id_auto_layout_foreign">
            <?php 
            echo __('FOREIGN KEY');
            ?>
</label><br />
            <?php 
        }
        ?>
        </td></tr>
        </table>
        </fieldset>
        <fieldset class="tblFooters">
        <input type="submit" value="<?php 
        echo __('Go');
        ?>
" />
        </fieldset>
        </form>
        <?php 
    }
开发者ID:htom78,项目名称:project,代码行数:68,代码来源:User_Schema.class.php

示例4: showCreatePageDialog

 /**
  * shows/displays the HTML FORM to create the page
  *
  * @param string $db name of the selected database
  *
  * @return void
  * @access public
  */
 public function showCreatePageDialog($db)
 {
     $htmlString = '<form method="post" action="schema_edit.php"' . ' name="frm_create_page">' . '<fieldset>' . '<legend>' . __('Create a page') . '</legend>' . PMA_URL_getHiddenInputs($db) . '<input type="hidden" name="do" value="createpage" />' . '<table>' . '<tr>' . '<td><label for="id_newpage">' . __('Page name') . '</label></td>' . '<td>' . '<input type="text" name="newpage" id="id_newpage"' . ' size="20" maxlength="50" />' . '</td>' . '</tr>' . '<tr>' . __('Automatic layout based on') . '</td>' . '<td>' . '<input type="checkbox" name="auto_layout_internal"' . ' id="id_auto_layout_internal" /><label for="id_auto_layout_internal">' . __('Internal relations') . '</label><br />';
     /*
      * Check to see whether INNODB and PBXT storage engines
      * are Available in MYSQL PACKAGE
      * If available, then provide AutoLayout for Foreign Keys in Schema View
      */
     if (PMA_StorageEngine::isValid('InnoDB') || PMA_StorageEngine::isValid('PBXT')) {
         $htmlString .= '<input type="checkbox" name="auto_layout_foreign"' . ' id="id_auto_layout_foreign" />' . '<label for="id_auto_layout_foreign">' . __('FOREIGN KEY') . '</label><br />';
     }
     $htmlString .= '</td></tr>' . '</table>' . '</fieldset>' . '<fieldset class="tblFooters">' . '<input type="submit" value="' . __('Go') . '" />' . '</fieldset>' . '</form>';
     echo $htmlString;
 }
开发者ID:skduncan,项目名称:pizza-order,代码行数:22,代码来源:User_Schema.class.php

示例5: PMA_generate_common_hidden_inputs

<form method="post" action="pdf_pages.php" name="crpage">
    <fieldset>
     <legend>
    <?php 
    echo $strCreatePage . "\n";
    ?>
     </legend>
    <?php 
    echo PMA_generate_common_hidden_inputs($db, $table);
    ?>
    <input type="hidden" name="do" value="createpage" />
    <input type="text" name="newpage" size="20" maxlength="50" />
       <input type="checkbox" name="auto_layout_internal" />
<?php 
    echo '(' . $strAutomaticLayout . ' / ' . $strInternalRelations . ')';
    if (PMA_StorageEngine::isValid('InnoDB') || PMA_StorageEngine::isValid('PBXT')) {
        echo '<input type="checkbox" name="auto_layout_foreign" />' . '(' . $strAutomaticLayout . ' / FOREIGN KEY)';
    }
    ?>
        <input type="submit" value="<?php 
    echo $strGo;
    ?>
" />
    </fieldset>
</form>
    <?php 
    // Now if we already have chosen a page number then we should show the
    // tables involved
    if (isset($chpage) && $chpage > 0) {
        echo "\n";
        ?>
开发者ID:fathitarek,项目名称:cop5725-dbms-project,代码行数:31,代码来源:pdf_pages.php


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