PMA\libraries\ThemeManager::setThemeCookie PHP Метод

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

save theme in cookie
public setThemeCookie ( ) : boolean
Результат boolean true
    public function setThemeCookie()
    {
        $GLOBALS['PMA_Config']->setCookie($this->getThemeCookieName(), $this->theme->id, $this->theme_default);
        // force a change of a dummy session variable to avoid problems
        // with the caching of phpmyadmin.css.php
        $GLOBALS['PMA_Config']->set('theme-update', $this->theme->id);
        return true;
    }

Usage Example

 /**
  * Test for setThemeCookie
  *
  * @return void
  */
 public function testSetThemeCookie()
 {
     $tm = new ThemeManager();
     $this->assertTrue($tm->setThemeCookie());
 }