本文整理匯總了PHP中PMA_getHtmlToChooseUserGroup函數的典型用法代碼示例。如果您正苦於以下問題:PHP PMA_getHtmlToChooseUserGroup函數的具體用法?PHP PMA_getHtmlToChooseUserGroup怎麽用?PHP PMA_getHtmlToChooseUserGroup使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了PMA_getHtmlToChooseUserGroup函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: PMA_getHtmlForUserGroupDialog
/**
* Get Html for User Group Dialog
*
* @param string $username username
* @param bool $is_menuswork Is menuswork set in configuration
*
* @return string html
*/
function PMA_getHtmlForUserGroupDialog($username, $is_menuswork)
{
$html = '';
if (!empty($_REQUEST['edit_user_group_dialog']) && $is_menuswork) {
$dialog = PMA_getHtmlToChooseUserGroup($username);
$response = PMA_Response::getInstance();
if ($GLOBALS['is_ajax_request']) {
$response->addJSON('message', $dialog);
exit;
} else {
$html .= $dialog;
}
}
return $html;
}
示例2: testPMAGetHtmlToChooseUserGroup
/**
* Test for PMA_getHtmlToChooseUserGroup
*
* @return void
*/
public function testPMAGetHtmlToChooseUserGroup()
{
$username = "pma_username";
//PMA_getHtmlToChooseUserGroup
$html = PMA_getHtmlToChooseUserGroup($username);
$this->assertContains('<form class="ajax" id="changeUserGroupForm"', $html);
//PMA_URL_getHiddenInputs
$params = array('username' => $username);
$html_output = PMA_URL_getHiddenInputs($params);
$this->assertContains($html_output, $html);
//__('User group')
$this->assertContains(__('User group'), $html);
}