예제 #1
0
 public static function appendParameters($url, array $parameters)
 {
     $url = new Customweb_Core_Url($url);
     foreach ($parameters as $key => $value) {
         $url->appendQueryParameter($key, $value);
     }
     return $url->toString();
 }
 /**
  * Creates a URL based on the parameters given and the order context.
  * Subclasses may override this method to apply SEO optimizations.
  * 
  * @param Customweb_Payment_Authorization_IOrderContext $orderContext
  * @param array $parameters
  * @return string
  */
 protected function createUrl(array $parameters)
 {
     $url = new Customweb_Core_Url($this->getBaseUrl());
     $url->appendQueryParameters($parameters);
     return $url->toString();
 }