PMA\libraries\config\PageSettings::showGroup PHP Method

showGroup() public static method

Group to show for Page-related settings
public static showGroup ( string $formGroupName ) : PageSettings
$formGroupName string The name of config form group to display
return PageSettings
    public static function showGroup($formGroupName)
    {
        $object = new PageSettings($formGroupName);
        $response = Response::getInstance();
        $response->addHTML($object->getErrorHTML());
        $response->addHTML($object->getHTML());
        return $object;
    }

Usage Example

 /**
  * Test showGroup with a known group name
  *
  * @return void
  */
 public function testShowGroupBrowse()
 {
     $object = PageSettings::showGroup('Browse');
     $html = $object->getHTML();
     // Test some sample parts
     $this->assertContains('<div id="page_settings_modal">' . '<div class="page_settings">' . '<form method="post" ' . 'action="phpunit?db=&amp;table=&amp;server=1&amp;target=&amp;lang=en&amp;token=token" ' . 'class="config-form disableAjax">', $html);
     $this->assertContains('<input type="hidden" name="submit_save" value="Browse" />', $html);
     $this->assertContains("validateField('MaxRows', 'PMA_validatePositiveNumber', true);\n" . "validateField('RepeatCells', 'PMA_validateNonNegativeNumber', true);\n" . "validateField('LimitChars', 'PMA_validatePositiveNumber', true);\n", $html);
 }
All Usage Examples Of PMA\libraries\config\PageSettings::showGroup