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