ProductsSearchUrl¶
The ProductsSearchUrl object extends the Url object. Represents a link to the search results - a list of products that meet the conditions specified in the query.
classDiagram
direction LR
ProductsSearchUrl <|-- Url
class Url{
}
class ProductsSearchUrl{
array params
ProductsSearchUrl forPage(int page)
ProductsSearchUrl forView(string view)
ProductsSearchUrl forSort(int sort)
}
Methods¶
url.forPage(int page)¶
Method returns ProductsSearchUrl
object with the page parameter set in the url.
url.forView(string view)¶
Method returns ProductsSearchUrl
object with the view parameter set in the url.
url.forSort(int sort)¶
Method returns ProductsSearchUrl
object with the sort parameter set in the url
Examples¶
Displaying absolute url with page parameter set:
Displaying absolute url with view parameter set:
It is also possible to call these methods in chain and build an url with multiple parameters: