Set redirect view file

@param string $redirectView The view file
@return $this
@throws \RuntimeException When view file not found
969339
public function setRedirectView($redirectView)
    {
        if (!is_file($redirectView)) {
            throw new \RuntimeException(sprintf('Redirect view file "%s" not found', $redirectView));
        }
        $this->redirectView = $redirectView;
        return $this;
    }
768391
public function removeForRedirect(Redirect $redirect)
    {
        $notFounds = $this->om->getRepository($this->class)->findBy(array('path' => $redirect->getSource()));

        foreach ($notFounds as $notFound) {
            $this->om->remove($notFound);
        }

        $this->om->flush();
    }
326498
public function setUri($uri)
	{
		if (filter_var($uri, FILTER_VALIDATE_URL)) {
			$this->uri = $uri;
		} else {
			throw new RuntimeException('Invalid URI setted.');
		}
		
		return $this;
	}
256727
private function createRoute(Redirect $redirect)
    {
        return new Route(
            $redirect->getOrigin(), array(
                    '_controller' => 'FrameworkBundle:Redirect:urlRedirect',
                    'path' => $redirect->getTarget(),
                    'permanent' => $redirect->isPermanent(),
                ));
    }
973328
public static function rewindEntityBody(RequestInterface $redirectRequest)
    {
        // Rewind the entity body of the request if needed
        if ($body = $redirectRequest->getBody()) {
            // Only rewind the body if some of it has been read already, and
            // throw an exception if the rewind fails
            if ($body->tell() && !$body->seek(0)) {
                throw new CouldNotRewindStreamException(
                    'Unable to rewind the non-seekable request body after redirecting',
                    $redirectRequest
                );
            }
        }
    }
176587
private function _setView()
	{
		if (preg_match('/^[a-z0-9_-]+$/', $this->_requestVars[1])) {
			$this->_view = $this->_requestVars[1];
        } else {
        	$this->_view = $this->_requestVars[1] = self::DEFAULT_VIEW;
        }

        return $this;
	}
1096688
public function setCurrentView(View $currentView)
    {
        if ($this->currentView == null) {
            $this->currentView = clone $currentView;
        }
        $this->updatedCurrentView = $currentView;

        return $this;
    }
979798
public function setRedirectUrl($sRedirectUrl)
    {
        if (!$this->bIsLocked) {
            $this->sRedirectUrl = $sRedirectUrl;
            $this->setIsRedirect(!empty($sRedirectUrl));
        }
        return $this;
    }
432155
public function setView( \Aimeos\MW\View\Iface $view )
	{
		$this->client->setView( $view );
		parent::setView( $view );

		return $this;
	}
456396
public function legacyRedirectForEditView($request)
    {
        $fileID = $request->param('FileID');
        /** @var File $file */
        $file = File::get()->byID($fileID);
        $link = $this->getFileEditLink($file) ?: $this->Link();
        $this->redirect($link);
    }
194811
public function createRedirectResponse(View $view, $location, $format)
    {
        $content = null;
        if ((Response::HTTP_CREATED === $view->getStatusCode() || Response::HTTP_ACCEPTED === $view->getStatusCode()) && null !== $view->getData()) {
            $response = $this->initResponse($view, $format);
        } else {
            $response = $view->getResponse();
            if ('html' === $format && isset($this->forceRedirects[$format])) {
                $redirect = new RedirectResponse($location);
                $content = $redirect->getContent();
                $response->setContent($content);
            }
        }

        $code = isset($this->forceRedirects[$format])
            ? $this->forceRedirects[$format] : $this->getStatusCode($view, $content);

        $response->setStatusCode($code);
        $response->headers->set('Location', $location);

        return $response;
    }
564917
public function setFilename($file)
    {
        $found = false;
        foreach (self::$_viewPaths as $path)
        {
            if ( ! $found && is_file($path . $file . self::$ext))
            {
                $found = $path . $file . self::$ext;
            }
        }

        if ( ! $found)
        {
            throw new ViewException('The requested view :file could not be found', [
                ':file' => $file,
            ]);
        }

        $this->_file = $found;
        return $this;
    }
2382
public function edit(Redirect $redirect)
    {
        $this->authorize(RedirectsPolicy::PERMISSION_UPDATE);

        $statuses = RedirectStatuses::all();

        $this->setTitle($title = trans('seo::redirects.titles.edit-redirection'));
        $this->addBreadcrumb($title);

        return $this->view('admin.redirects.edit', compact('redirect', 'statuses'));
    }
904647
public function setView($view)
    {
        $view   = parent::setView($view);
        $format = $this->getRequest()->getFormat();

        if ($view instanceof KObjectIdentifier && $view->getPackage() != 'activities' && $format  !== 'html')
        {
            $manager = $this->getObject('manager');

            // Set the view identifier as an alias of the component view.
            if (!$manager->getClass($view, false))
            {
                $identifier = $view->toArray();
                $identifier['package'] = 'activities';
                unset($identifier['domain']);

                $manager->registerAlias($identifier, $view);
            }
        }

        return $view;
    }
1192951
public function redirect() {

    if (isset($_GET['view'])) {
      $view = "view=" . $_GET['view'];
    } else {
      $view = "view=return";
    }

    $return_url = substr(BASE_URL, 0, -12) . 'index.php?' . $view . '&transactionid=' . $_GET['transactionid'];
    header("Location: " . $return_url);
  }
1368540
public function setView(ViewComponentInterface $view = null)
    {
        if ($view === $this->view) {
            return $this;
        }
        $this->view && $this->view->detach();
        $view && $view->attachTo($this);
        $this->view = $view;
        return $this;
    }
789246
public function setView( MW_View_Interface $view )
	{
		$this->_view = $view;
		$this->_client->setView( $view );
	}