[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/uri/src/ -> Uri.php (summary)

Part of the Joomla Framework Uri Package

Copyright: Copyright (C) 2005 - 2022 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 202 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Uri:: (10 methods):
  setVar()
  delVar()
  setQuery()
  setScheme()
  setUser()
  setPass()
  setHost()
  setPort()
  setPath()
  setFragment()


Class: Uri  - X-Ref

Uri Class

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

setVar($name, $value)   X-Ref
Adds a query variable and value, replacing the value if it already exists and returning the old value

param: string  $name   Name of the query variable to set.
param: string  $value  Value of the query variable.
return: string  Previous value for the query variable.

delVar($name)   X-Ref
Removes an item from the query string variables if it exists

param: string  $name  Name of variable to remove.
return: void

setQuery($query)   X-Ref
Sets the query to a supplied string in format foo=bar&x=y

param: array|string  $query  The query string or array.
return: void

setScheme($scheme)   X-Ref
Set the URI scheme (protocol)

param: string  $scheme  The URI scheme.
return: Uri  This method supports chaining.

setUser($user)   X-Ref
Set the URI username

param: string  $user  The URI username.
return: Uri  This method supports chaining.

setPass($pass)   X-Ref
Set the URI password

param: string  $pass  The URI password.
return: Uri  This method supports chaining.

setHost($host)   X-Ref
Set the URI host

param: string  $host  The URI host.
return: Uri  This method supports chaining.

setPort($port)   X-Ref
Set the URI port

param: integer  $port  The URI port number.
return: Uri  This method supports chaining.

setPath($path)   X-Ref
Set the URI path string

param: string  $path  The URI path string.
return: Uri  This method supports chaining.

setFragment($anchor)   X-Ref
Set the URI anchor string

param: string  $anchor  The URI anchor string.
return: Uri  This method supports chaining.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer