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