PMA\libraries\Theme::getFontSize PHP Метод

getFontSize() публичный Метод

Gets currently configured font size.
public getFontSize ( ) : String
Результат String with font size.
    function getFontSize()
    {
        $fs = $GLOBALS['PMA_Config']->get('fontsize');
        if (!is_null($fs)) {
            return $fs;
        }
        if (isset($_COOKIE['pma_fontsize'])) {
            return htmlspecialchars($_COOKIE['pma_fontsize']);
        }
        return '82%';
    }

Usage Example

Пример #1
0
 /**
  * Test for getFontSize
  *
  * @return void
  */
 public function testGetFontSize()
 {
     $this->assertEquals($this->object->getFontSize(), '82%');
     $GLOBALS['PMA_Config']->set('fontsize', '12px');
     $this->assertEquals($this->object->getFontSize(), '12px');
 }