__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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) 2024 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\Calendar;

use Joomla\CMS\User\User;
use Joomla\Registry\Registry;

class ExternalCalendar extends Calendar implements ExternalCalendarInterface
{
	private string $pluginName  = '';
	private string $systemName  = '';
	private int $access_content = 1;
	private ?string $syncDate   = null;
	private ?string $syncToken  = null;
	private bool $forceColor    = true;

	protected string $assetName = 'extcalendar';

	public function __construct(string $id, string $title, User $user)
	{
		parent::__construct($id, $title, $user);

		$this->setCanBook(false);
		$this->setCanEditOwn(false);
	}

	public function getPluginName(): string
	{
		return $this->pluginName;
	}

	public function setPluginName(string $pluginName): void
	{
		$this->pluginName = $pluginName;
	}

	public function getSystemName(): string
	{
		return $this->systemName;
	}

	public function setSystemName(string $systemName): void
	{
		$this->systemName = $systemName;
	}

	public function getAccessContent(): int
	{
		return $this->access_content;
	}

	public function setAccessContent(int $access): void
	{
		$this->access_content = $access;
	}

	public function getSyncDate(): ?string
	{
		return $this->syncDate;
	}

	public function setSyncDate(?string $syncDate): void
	{
		$this->syncDate = $syncDate;
	}

	public function getSyncToken(): ?string
	{
		return $this->syncToken;
	}

	public function setSyncToken(?string $syncToken): void
	{
		if ($syncToken === '') {
			$syncToken = null;
		}

		$this->syncToken = $syncToken;
	}

	public function forceColor(): bool
	{
		return $this->forceColor;
	}

	public function setForceColor(bool $forceColor): void
	{
		$this->forceColor = $forceColor;
	}

	public function setParams(Registry $params): void
	{
		parent::setParams($params);

		// We need to validate as it can also be a string false
		$this->setCanCreate($this->canCreate() && filter_var($this->getParams()->get('action-create', false), FILTER_VALIDATE_BOOLEAN));
		$this->setCanEdit($this->canEdit() && filter_var($this->getParams()->get('action-edit', false), FILTER_VALIDATE_BOOLEAN));
		$this->setCanDelete($this->canDelete() && filter_var($this->getParams()->get('action-delete', false), FILTER_VALIDATE_BOOLEAN));
	}
}

Filemanager

Name Type Size Permission Actions
Calendar.php File 4.17 KB 0664
CalendarInterface.php File 940 B 0664
ExternalCalendar.php File 2.39 KB 0664
ExternalCalendarInterface.php File 567 B 0664
InternalCalendar.php File 1.28 KB 0664
Filemanager