library/core/class.theme.php
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);
      }
   }
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);
      }
   }
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 ) ; } }
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
The current section the site is in . This can be one or more values . Think of it like a server - side css - class .