public static function build_all_paths($force = false) {
        self::init_levels();
        foreach (self::$alllevels as $classname) {
            $classname::build_paths($force);
        }

        // reset static course cache - it might have incorrect cached data
        accesslib_clear_all_caches(true);
    }
public static function build_all_paths($force = false) {
        self::init_levels();
        foreach (self::$alllevels as $classname) {
            $classname::build_paths($force);
        }

        // reset static course cache - it might have incorrect cached data
        accesslib_clear_all_caches(true);
    }
public static function build_all_paths ( $ force = false ) { self :: init_levels ( ) ; foreach ( self :: $ alllevels as $ classname ) { $ classname :: build_paths ( $ force ) ; } // reset static course cache - it might have incorrect cached data accesslib_clear_all_caches ( true ) ; }
Rebuild paths and depths in all context levels.

@static
@param bool $force false means add missing only
@return void
Rebuild paths and depths in all context levels .