Example #1
0
 /**
  * @param $urlPath
  * @param $presenter
  * @param $action
  * @param null $internal_id
  * @return Url
  */
 public static function create($urlPath, $presenter, $action, $internal_id = null)
 {
     $url = new Url();
     $url->setUrlPath($urlPath);
     $url->setDestination($presenter, $action);
     $url->setInternalId($internal_id);
     return $url;
 }
Example #2
0
 /**
  * @param string $urlAddress
  * @return Url
  */
 private function createUrl($urlAddress)
 {
     $url = new Url();
     $url->setDestination(Page::PRESENTER, Page::PRESENTER_ACTION);
     $url->setUrlPath($urlAddress);
     return $url;
 }