PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TUri

TUri class

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
TComponent
Extended by TUri
Package: System\Web
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/THttpRequest.php
Methods summary
public
# __construct( string $uri )

Constructor. Decomposes the specified URI into parts.

Constructor. Decomposes the specified URI into parts.

Parameters

$uri
string
URI to be represented

Throws

TInvalidDataValueException
if URI is of bad format

Overrides

TComponent::__construct()
public string
# getUri( )

Returns

string
URI
public string
# getScheme( )

Returns

string
scheme of the URI, such as 'http', 'https', 'ftp', etc.
public string
# getHost( )

Returns

string
hostname of the URI
public integer
# getPort( )

Returns

integer
port number of the URI
public string
# getUser( )

Returns

string
username of the URI
public string
# getPassword( )

Returns

string
password of the URI
public string
# getPath( )

Returns

string
path of the URI
public string
# getQuery( )

Returns

string
query string of the URI
public string
# getFragment( )

Returns

string
fragment of the URI
Methods inherited from TComponent
__call(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO