ProductsOfTheDayUrl¶
The ProductsOfTheDayUrl object extends the Url object. Represents a link to the list of products of the day.
classDiagram
direction LR
ProductsOfTheDayUrl <|-- Url
class Url{
}
class ProductsOfTheDayUrl{
array params
ProductsOfTheDayUrl forPage(int page)
ProductsOfTheDayUrl forView(string view)
ProductsOfTheDayUrl forSort(int sort)
}
Methods¶
url.forPage(int page)¶
Method returns ProductsOfTheDayUrl
object with the page parameter set in the url.
url.forView(string view)¶
Method returns ProductsOfTheDayUrl
object with the view parameter set in the url.
url.forSort(int sort)¶
Method returns ProductsOfTheDayUrl
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: