Source for file Uri.php
Documentation is available at Uri.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see https://nette.org
- 12: *
- 19: */
- 27: /**
- 28: * URI Syntax (RFC 3986).
- 29: *
- 30: * <pre>
- 31: * http://user:pass@nette.org:8042/en/manual.html?name=param#fragment
- 32: * \__/^^^\_________________________/\_____________/^\________/^\______/
- 33: * | | | | |
- 34: * scheme authority path query fragment
- 35: * </pre>
- 36: *
- 37: * - authority: [user[:pass]@]host[:port]
- 38: * - hostUri: http://user:pass@nette.org:8042
- 39: *
- 43: */
- 45: {
- 81: /**
- 84: */
- 86: {
- 91: }
- 95: }
- 99: }
- 100: }
- 101: }
- 105: /**
- 106: * Returns the entire URI including query string and fragment.
- 108: */
- 110: {
- 114: }
- 118: /**
- 119: * Returns the [user[:pass]@]host[:port] part of URI.
- 121: */
- 123: {
- 127: }
- 131: }
- 134: }
- 138: /**
- 139: * Returns the scheme and authority part of URI.
- 141: */
- 143: {
- 145: }
- 149: /**
- 150: * URI comparsion (this object must be in canonical form).
- 153: */
- 155: {
- 156: // compare host + path
- 166: }
- 168: // compare query strings
- 174: }
- 176: }
- 180: /**
- 181: * Transform to canonical form.
- 183: */
- 185: {
- 194: }
- 195: }
- 199: /**
- 201: */
- 203: {
- 205: }
- 209: /**
- 210: * Similar to rawurldecode, but preserve reserved chars encoded.
- 214: */
- 216: {
- 217: // reserved (@see RFC 2396) = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
- 218: // within a path segment, the characters "/", ";", "=", "?" are reserved
- 219: // within a query component, the characters ";", "/", "?", ":", "@", "&", "=", "+", ",", "$" are reserved.
- 227: }
- 233: }
- 236: }
- 238: }