added drag and drop for new records via calendar (#1962)
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
|
||||
namespace App\Configuration;
|
||||
|
||||
/**
|
||||
* @deprecated since 1.11 - use SystemConfiguration instead
|
||||
*/
|
||||
class CalendarConfiguration implements SystemBundleConfiguration
|
||||
{
|
||||
use StringAccessibleConfigTrait;
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
|
||||
namespace App\Configuration;
|
||||
|
||||
/**
|
||||
* @internal will be deprecated soon, use SystemConfiguration instead
|
||||
*/
|
||||
class FormConfiguration implements SystemBundleConfiguration
|
||||
{
|
||||
use StringAccessibleConfigTrait;
|
||||
|
||||
@@ -22,4 +22,64 @@ class SystemConfiguration implements SystemBundleConfiguration
|
||||
{
|
||||
return $repository->getConfiguration();
|
||||
}
|
||||
|
||||
public function getTimesheetDefaultBeginTime(): string
|
||||
{
|
||||
return (string) $this->find('timesheet.default_begin');
|
||||
}
|
||||
|
||||
public function getCalendarBusinessDays(): array
|
||||
{
|
||||
return (array) $this->find('calendar.businessHours.days');
|
||||
}
|
||||
|
||||
public function getCalendarBusinessTimeBegin(): string
|
||||
{
|
||||
return (string) $this->find('calendar.businessHours.begin');
|
||||
}
|
||||
|
||||
public function getCalendarBusinessTimeEnd(): string
|
||||
{
|
||||
return (string) $this->find('calendar.businessHours.end');
|
||||
}
|
||||
|
||||
public function getCalendarTimeframeBegin(): string
|
||||
{
|
||||
return (string) $this->find('calendar.visibleHours.begin');
|
||||
}
|
||||
|
||||
public function getCalendarTimeframeEnd(): string
|
||||
{
|
||||
return (string) $this->find('calendar.visibleHours.end');
|
||||
}
|
||||
|
||||
public function getCalendarDayLimit(): int
|
||||
{
|
||||
return (int) $this->find('calendar.day_limit');
|
||||
}
|
||||
|
||||
public function isCalendarShowWeekNumbers(): bool
|
||||
{
|
||||
return (bool) $this->find('calendar.week_numbers');
|
||||
}
|
||||
|
||||
public function isCalendarShowWeekends(): bool
|
||||
{
|
||||
return (bool) $this->find('calendar.weekends');
|
||||
}
|
||||
|
||||
public function getCalendarGoogleApiKey(): ?string
|
||||
{
|
||||
return $this->find('calendar.google.api_key');
|
||||
}
|
||||
|
||||
public function getCalendarGoogleSources(): ?array
|
||||
{
|
||||
return $this->find('calendar.google.sources');
|
||||
}
|
||||
|
||||
public function getCalendarSlotDuration(): string
|
||||
{
|
||||
return (string) $this->find('calendar.slot_duration');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
|
||||
namespace App\Configuration;
|
||||
|
||||
/**
|
||||
* @internal will be deprecated soon, use SystemConfiguration instead
|
||||
*/
|
||||
class ThemeConfiguration implements SystemBundleConfiguration, \ArrayAccess
|
||||
{
|
||||
use StringAccessibleConfigTrait;
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
|
||||
namespace App\Configuration;
|
||||
|
||||
/**
|
||||
* @internal will be deprecated soon, use SystemConfiguration instead
|
||||
*/
|
||||
class TimesheetConfiguration implements SystemBundleConfiguration
|
||||
{
|
||||
use StringAccessibleConfigTrait;
|
||||
|
||||
Reference in New Issue
Block a user