API16:JURI
出典: Joomla! ドキュメンテーション
目次 |
Defined in
libraries/joomla/environment/uri.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor. You can pass a URI string to the constructor to initialise a specific URI. |
| __toString | Magic method to get the string representation of the URI object. |
| parse | Parse a given URI and populate the class fields. |
| toString | Returns full uri string. |
| setVar | Adds a query variable and value, replacing the value if it already exists and returning the old value. |
| getVar | Returns a query variable by name. |
| delVar | Removes an item from the query string variables if it exists. |
| setQuery | Sets the query to a supplied string in format: foo=bar&x=y |
| getQuery | Returns flat query string. |
| buildQuery | Build a query from a array (reverse of the PHP parse_str()). |
| getScheme | Get URI scheme (protocol) ie. http, https, ftp, etc... |
| setScheme | Set URI scheme (protocol) ie. http, https, ftp, etc... |
| getUser | Get URI username returns the username, or null if no username was specified. |
| setUser | Set URI username. |
| getPass | Get URI password returns the password, or null if no password was specified. |
| setPass | Set URI password. |
| getHost | Get URI host returns the hostname/ip, or null if no hostname/ip was specified. |
| setHost | Set URI host. |
| getPort | Get URI port returns the port number, or null if no port was specified. |
| setPort | Set URI port. |
| getPath | Gets the URI path string. |
| setPath | Set the URI path string. |
| getFragment | Get the URI archor string everything after the "#". |
| setFragment | Set the URI anchor string everything after the "#". |
| isSSL | Checks whether the current URI is using HTTPS. |
| isInternal | Checks if the supplied URL is internal |
| getInstance | Returns the global JURI object, only creating it if it doesn't already exist. |
| base | Returns the base URI for the request. |
| root | Returns the root URI for the request. |
| current | Returns the URL for the request, minus the query. |
Importing
jimport( 'joomla.environment.uri' );
Examples
<CodeExamplesForm />
自動更新 2012/05/24 13:08:24
