本文整理汇总了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;
}
示例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
*/
示例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
}
示例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;
}
示例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";
?>