TUri represents a URI. Given a URI http://joe:whatever@example.com:8080/path/to/script.php?param=value#anchor it will be decomposed as follows, - scheme: http - host: example.com - port: 8080 - user: joe - password: whatever - path: /path/to/script.php - query: param=value - fragment: anchor
부터: 3.0
저자: Qiang Xue (qiang.xue@gmail.com)
상속: extends Prado\TComponent
예제 #1
0
 public function testConstruct()
 {
     $url = "http://www.pradoframework.net/";
     $uri = new TUri($url);
     self::assertEquals($url, $uri->getUri());
     // Bad uri test
     $url = "http://www.pradoframework.net:badport/test";
     try {
         $url = new TUri($url);
         self::fail('exception not raised with an invalid URL');
     } catch (TInvalidDataValueException $e) {
     }
 }