/** * The current section the site is in. This can be one or more values. Think of it like a server-side css-class. * * @since 2.1 * * @param string $Section The name of the section. * @param string $Method One of: add, remove, set, get. */ public static function section($Section, $Method = 'add') { $Section = array_fill_keys((array) $Section, true); switch (strtolower($Method)) { case 'add': self::$_Section = array_merge(self::$_Section, $Section); break; case 'remove': self::$_Section = array_diff_key(self::$_Section, $Section); break; case 'set': self::$_Section = $Section; break; case 'get': default: return array_keys(self::$_Section); } }