ProducerUrl¶
The ProducerUrl object extended the Url object and represents an absolute or relative link to the producer product list.
classDiagram
direction LR
ProducerUrl <|-- Url
class Url{
}
class ProducerUrl{
int producerId
string producerName
array params
ProducerUrl forPage(int page)
ProducerUrl forView(string view)
ProducerUrl forSort(int sort)
}
Methods¶
url.forPage(int page)¶
ProducerUrl
by calling this method you set the page parameter to the url
url.forView(string view)¶
ProducerUrl
by calling this method you set the view parameter to the url
url.forSort(int sort)¶
ProducerUrl
by calling this method you set the sort parameter to the url
Examples¶
The forPage(), forView() and forSort() methods return the object so you can call relative or absolute properties on it
You can also call those methods in chain and create the url as you like