Example #1
0
 /**
  * Sets the given $themeName to be the current theme
  *
  * @param  $themeName string
  */
 public static function set($themeName)
 {
     if (!self::exists($themeName)) {
         return false;
     }
     self::$_currentTheme = $themeName;
     // set some of the expected globals
     $GLOBALS['barChartColors'] = self::current()->barChartColors;
     $GLOBALS['pieChartColors'] = self::current()->pieChartColors;
     return true;
 }