original_string: public static function create_instances($contextlevel = null, $buildpaths = true) {
          self::init_levels();
          foreach (self::$alllevels as $level=>$classname) {
              if ($contextlevel and $level > $contextlevel) {
                  // skip potential sub-contexts
                  continue;
              }
              $classname::create_level_instances();
              if ($buildpaths) {
                  $classname::build_paths(false);
              }
          }
      }
code: public static function create_instances($contextlevel = null, $buildpaths = true) {
          self::init_levels();
          foreach (self::$alllevels as $level=>$classname) {
              if ($contextlevel and $level > $contextlevel) {
                  // skip potential sub-contexts
                  continue;
              }
              $classname::create_level_instances();
              if ($buildpaths) {
                  $classname::build_paths(false);
              }
          }
      }
code_tokens: public static function create_instances ( $ contextlevel = null , $ buildpaths = true ) { self :: init_levels ( ) ; foreach ( self :: $ alllevels as $ level => $ classname ) { if ( $ contextlevel and $ level > $ contextlevel ) { // skip potential sub-contexts continue ; } $ classname :: create_level_instances ( ) ; if ( $ buildpaths ) { $ classname :: build_paths ( false ) ; } } }
docstring: Create all context instances at the given level and above.
  
  @static
  @param int $contextlevel null means all levels
  @param bool $buildpaths
  @return void
docstring_tokens: Create all context instances at the given level and above .