| 1 | <?php |
||
| 8 | class Path extends AbstractUriPart |
||
| 9 | { |
||
| 10 | protected static $unencoded_characters = array('/'); |
||
| 11 | |||
| 12 | protected static $compositions = array( |
||
| 13 | "unreserved_characters", |
||
| 14 | "sub_delims_characters", |
||
| 15 | "pchar_characters", |
||
| 16 | ); |
||
| 17 | |||
| 18 | protected static $part_pattern; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Host constructor. Accepts a string representing a URI host component. Construction will throw an exception if |
||
| 22 | * the host is not a string. |
||
| 23 | * |
||
| 24 | * path-abempty = *( "/" segment ) |
||
| 25 | * path-absolute = "/" [ segment-nz *( "/" segment ) ] |
||
| 26 | * path-noscheme = segment-nz-nc *( "/" segment ) |
||
| 27 | * path-rootless = segment-nz *( "/" segment ) |
||
| 28 | * path-empty = 0<pchar> |
||
| 29 | * |
||
| 30 | * segment = *pchar |
||
| 31 | * segment-nz = 1*pchar |
||
| 32 | * segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" ) |
||
| 33 | * ; non-zero-length segment without any colon ":" |
||
| 34 | * |
||
| 35 | * pchar = unreserved / pct-encoded / sub-delims / ":" / "@" |
||
| 36 | * |
||
| 37 | * @param string $path |
||
| 38 | */ |
||
| 39 | 9 | public function __construct($path) |
|
| 43 | } |
||
| 44 |