public static function setUrl($url) { self::load(); // TODO: [OPTIONAL] save previous state in $history // Reset all static vars self::$url = $url; self::$parts = array(); self::$parameters = array(); self::$language = ''; self::$node = null; // Calculate vars self::_preprocess_url(); self::_extract_language(); self::_search_node(); self::_apply_permissions(); }