MainPageUrl¶
The MainPageUrl object extended the Url object and represents an absolute or relative link to the main page.
classDiagram
direction LR
MainPageUrl <|-- Url
class Url{
}
class MainPageUrl{
array params
MainPageUrl forPage(int page)
MainPageUrl forView(string view)
}
Methods¶
url.forPage(int page)¶
MainPageUrl
by calling this method you set the page parameter to the url
url.forView(string view)¶
MainPageUrl
by calling this method you set the view parameter to the url
Examples¶
The forPage() and forView() 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