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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Create all context instances at the given level and above.

@static
@param int $contextlevel null means all levels
@param bool $buildpaths
@return void
Create all context instances at the given level and above .