JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • AbstractUri
  • Uri
  • UriHelper
  • UriImmutable

Interfaces

  • UriInterface

Class Uri

Uri Class

This class parses a URI and provides a common interface for the Joomla Framework to access and manipulate a URI.

Joomla\Uri\AbstractUri implements Joomla\Uri\UriInterface
Extended by Joomla\Uri\Uri

Direct known subclasses

JUri

Namespace: Joomla\Uri
Since: 1.0
Located at vendor/joomla/uri/src/Uri.php

Methods summary

public string
# setVar( string $name, string $value )

Adds a query variable and value, replacing the value if it already exists and returning the old value.

Adds a query variable and value, replacing the value if it already exists and returning the old value.

Parameters

$name
string - $name Name of the query variable to set.
$value
string - $value Value of the query variable.

Returns

string - Previous value for the query variable.

Since

1.0
public
# delVar( string $name )

Removes an item from the query string variables if it exists.

Removes an item from the query string variables if it exists.

Parameters

$name
string - $name Name of variable to remove.

Since

1.0
public
# setQuery( mixed $query )

Sets the query to a supplied string in format: foo=bar&x=y

Sets the query to a supplied string in format: foo=bar&x=y

Parameters

$query
mixed - $query The query string or array.

Since

1.0
public
# setScheme( string $scheme )

Set URI scheme (protocol) ie. http, https, ftp, etc...

Set URI scheme (protocol) ie. http, https, ftp, etc...

Parameters

$scheme
string - $scheme The URI scheme.

Since

1.0
public
# setUser( string $user )

Set URI username.

Set URI username.

Parameters

$user
string - $user The URI username.

Since

1.0
public
# setPass( string $pass )

Set URI password.

Set URI password.

Parameters

$pass
string - $pass The URI password.

Since

1.0
public
# setHost( string $host )

Set URI host.

Set URI host.

Parameters

$host
string - $host The URI host.

Since

1.0
public
# setPort( integer $port )

Set URI port.

Set URI port.

Parameters

$port
integer - $port The URI port number.

Since

1.0
public
# setPath( string $path )

Set the URI path string.

Set the URI path string.

Parameters

$path
string - $path The URI path string.

Since

1.0
public
# setFragment( string $anchor )

Set the URI anchor string everything after the "#".

Set the URI anchor string everything after the "#".

Parameters

$anchor
string - $anchor The URI anchor string.

Since

1.0

Methods inherited from Joomla\Uri\AbstractUri

__construct(), __toString(), buildQuery(), cleanPath(), getFragment(), getHost(), getPass(), getPath(), getPort(), getQuery(), getScheme(), getUser(), getVar(), hasVar(), isSSL(), parse(), toString()

Magic methods summary

Properties summary

Properties inherited from Joomla\Uri\AbstractUri

$fragment, $host, $pass, $path, $port, $query, $scheme, $uri, $user, $vars

Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.