\app\framework\Component\StdLib\StdObject\UrlObjectManipulatorTrait

UrlObject manipulator trait.

Summary

Methods
Properties
Constants
setScheme()
setHost()
setPort()
setPath()
setQuery()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setQuery()

setQuery(\app\framework\Component\StdLib\StdObject\StringObject\StringObject|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject|string|array  $query, boolean  $append = false) : $this

Set url query param.

Parameters

\app\framework\Component\StdLib\StdObject\StringObject\StringObject|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject|string|array $query

Query params.

boolean $append

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.

Throws

\app\framework\Component\StdLib\StdObject\UrlObject\UrlObjectException

Returns

$this