added setting to limit the maximum length of a timesheet record (#2612)

This commit is contained in:
Kevin Papst
2021-06-12 01:05:33 +02:00
committed by GitHub
parent 53e01177d9
commit 7460647d58
19 changed files with 366 additions and 28 deletions

View File

@@ -211,6 +211,16 @@ class SystemConfiguration implements SystemBundleConfiguration
}
// ========== Timesheet configurations ==========
/*
public function getTimesheetBreakWarningDuration(): int
{
return (int) $this->find('timesheet.rules.break_warning_duration');
}
*/
public function getTimesheetLongRunningDuration(): int
{
return (int) $this->find('timesheet.rules.long_running_duration');
}
public function getTimesheetDefaultBeginTime(): string
{
@@ -352,6 +362,11 @@ class SystemConfiguration implements SystemBundleConfiguration
return (bool) $this->find('theme.colors_limited');
}
public function getThemeAutocompleteCharacters(): int
{
return (int) $this->find('theme.autocomplete_chars');
}
public function getThemeColorChoices(): ?array
{
$config = $this->find('theme.color_choices');