Ejemplo n.º 1
0
 /**
  * 	method:	redirect
  *
  * 	todo: write documentation
  */
 public static function redirect($url, $permenant = 0)
 {
     $type = $permenant ? 301 : 0;
     return Amslib_Website::redirect($url, true, $type);
 }
Ejemplo n.º 2
0
 /**
  * 	method:	failureSESSION
  *
  * 	todo: write documentation
  */
 protected function failureSESSION()
 {
     $_SESSION[self::SR] = $this->getResultData();
     Amslib_Website::redirect($this->getFailureURL(), true);
 }
Ejemplo n.º 3
0
 /**
  * 	method:	redirect
  *
  * 	todo: write documentation
  */
 public function redirect($command = false)
 {
     if ($command != false) {
         $this->command = $command;
     }
     switch ($this->command) {
         case "SetExpressCheckout":
             $this->setExpressCheckout(true);
             $this->collapseParameters();
             $this->url = "{$this->url}?{$this->queryString}";
             Amslib_Website::redirect($this->url);
     }
 }
Ejemplo n.º 4
0
 public function redirectToURL($url)
 {
     Amslib_Website::redirect($url);
 }