ShiftForm
extends BaseForm
Table of Contents
Properties
-
$breakDuration
: mixed
-
$breakDurationFormatted
: mixed
-
$endTime
: mixed
-
$endTimeFormatted
: mixed
-
$name
: mixed
-
$scheduleId
: mixed
-
$shiftId
: mixed
-
$startTime
: mixed
-
$startTimeFormatted
: mixed
-
$workDays
: mixed
Methods
-
__construct()
: mixed
-
addError()
: mixed
-
addErrors()
: mixed
-
clearErrors()
: mixed
-
configureFilterRules()
: mixed
-
getErrors()
: array<string|int, mixed>|array<string|int, FormError>
-
getFieldLabel()
: mixed
-
getFieldLabels()
: mixed
-
getFirstError()
: FormError|null
-
getFirstErrors()
: array<string|int, mixed>|array<string|int, FormError>
-
getFormattedBreakDuration()
: mixed
-
getFormattedEndTime()
: mixed
-
getFormattedStartTime()
: mixed
-
getFormName()
: string
-
hasErrors()
: mixed
-
hasWorkDays()
: bool
-
load()
: bool
-
loadMultiple()
: mixed
-
validate()
: mixed
-
validateMultiple()
: mixed
$breakDuration
public
mixed
$breakDuration
public
mixed
$breakDurationFormatted
$endTime
public
mixed
$endTime
public
mixed
$endTimeFormatted
$name
public
mixed
$name
$scheduleId
public
mixed
$scheduleId
$shiftId
public
mixed
$shiftId
$startTime
public
mixed
$startTime
public
mixed
$startTimeFormatted
$workDays
public
mixed
$workDays
__construct()
public
__construct([Shift|null $shift = null ]) : mixed
Parameters
-
$shift
: Shift|null
= null
-
addError()
public
addError(mixed $field[, mixed $error = '' ]) : mixed
Parameters
-
$field
: mixed
-
-
$error
: mixed
= ''
-
addErrors()
public
addErrors(array<string|int, mixed> $items) : mixed
Parameters
-
$items
: array<string|int, mixed>
-
clearErrors()
public
clearErrors([mixed $attribute = null ]) : mixed
Parameters
-
$attribute
: mixed
= null
-
public
configureFilterRules() : mixed
getErrors()
public
getErrors([null $fieldName = null ]) : array<string|int, mixed>|array<string|int, FormError>
Parameters
-
$fieldName
: null
= null
-
Return values
array<string|int, mixed>|array<string|int, FormError>
getFieldLabel()
public
getFieldLabel(mixed $fieldName) : mixed
Parameters
-
$fieldName
: mixed
-
getFieldLabels()
public
getFieldLabels() : mixed
getFirstError()
public
getFirstError([string $fieldName = null ]) : FormError|null
Parameters
-
$fieldName
: string
= null
-
getFirstErrors()
public
getFirstErrors() : array<string|int, mixed>|array<string|int, FormError>
Return values
array<string|int, mixed>|array<string|int, FormError>
public
getFormattedBreakDuration([mixed $defaultBreakDuration = 1 * 60 * 60 ]) : mixed
Parameters
-
$defaultBreakDuration
: mixed
= 1 * 60 * 60
-
public
getFormattedEndTime([mixed $defaultEndTime = 18 * 60 * 60 ]) : mixed
Parameters
-
$defaultEndTime
: mixed
= 18 * 60 * 60
-
public
getFormattedStartTime([mixed $defaultStartTime = 9 * 60 * 60 ]) : mixed
Parameters
-
$defaultStartTime
: mixed
= 9 * 60 * 60
-
public
getFormName() : string
hasErrors()
public
hasErrors([mixed $fieldName = null ]) : mixed
Parameters
-
$fieldName
: mixed
= null
-
hasWorkDays()
public
hasWorkDays() : bool
load()
public
load(HttpRequest|array<string|int, mixed> $data[, null $formName = null ]) : bool
Parameters
-
$data
: HttpRequest|array<string|int, mixed>
-
-
$formName
: null
= null
-
loadMultiple()
public
static loadMultiple(mixed $forms, mixed $data[, mixed $formName = null ]) : mixed
Parameters
-
$forms
: mixed
-
-
$data
: mixed
-
-
$formName
: mixed
= null
-
validate()
public
validate([mixed $fieldsNames = null ][, mixed $clearErrors = true ]) : mixed
Parameters
-
$fieldsNames
: mixed
= null
-
-
$clearErrors
: mixed
= true
-
validateMultiple()
public
static validateMultiple(array<string|int, mixed> $forms[, mixed $attributeNames = null ]) : mixed
Parameters
-
$forms
: array<string|int, mixed>
-
-
$attributeNames
: mixed
= null
-