PHP Trait Webiny\Component\StdLib\StdObject\UrlObject\ManipulatorTrait

Inheritance: use trait Webiny\Component\StdLib\StdObject\StdObjectManipulatorTrait
Mostra file Open project: Webiny/Framework

Public Methods

Method Description
setHost ( StringObject | string $host ) Set url host.
setPath ( StringObject | string $path ) Set url path.
setPort ( StringObject | string $port ) Set url port.
setQuery ( StringObject | ArrayObject | string | array $query, boolean $append = false ) Set url query param.
setScheme ( StringObject | string $scheme ) Set url scheme.

Method Details

setHost() public method

Set url host.
public setHost ( StringObject | string $host )
$host Webiny\Component\StdLib\StdObject\StringObject\StringObject | string Url host.

setPath() public method

Set url path.
public setPath ( StringObject | string $path )
$path Webiny\Component\StdLib\StdObject\StringObject\StringObject | string Url path.

setPort() public method

Set url port.
public setPort ( StringObject | string $port )
$port Webiny\Component\StdLib\StdObject\StringObject\StringObject | string Url port.

setQuery() public method

Set url query param.
public setQuery ( StringObject | ArrayObject | string | array $query, boolean $append = false )
$query Webiny\Component\StdLib\StdObject\StringObject\StringObject | Webiny\Component\StdLib\StdObject\ArrayObject\ArrayObject | string | array Query params.
$append boolean Do you want to append or overwrite current query param. In case when you are appending values, the values from $query, that already exist in the current query, will be overwritten by the ones inside the $query.

setScheme() public method

Set url scheme.
public setScheme ( StringObject | string $scheme )
$scheme Webiny\Component\StdLib\StdObject\StringObject\StringObject | string - Scheme must end with '://'. Example 'http://'.