$name
$name : string
The type's name
Entity Type Date class
getHTMLInputAttr(\Orpheus\EntityDescriptor\FieldDescriptor $field) : array<mixed,string>
Get the html input attributes array for the given Field descriptor
\Orpheus\EntityDescriptor\FieldDescriptor | $field |
emptyIsNull(\Orpheus\EntityDescriptor\FieldDescriptor $field) : boolean
Get true if we consider null an empty input string
\Orpheus\EntityDescriptor\FieldDescriptor | $field |
validate(\Orpheus\EntityDescriptor\FieldDescriptor $field, string $value, array $input, \Orpheus\EntityDescriptor\PermanentEntity $ref)
Validate value
\Orpheus\EntityDescriptor\FieldDescriptor | $field | The field to validate |
string | $value | The field value to validate |
array | $input | The input to validate |
\Orpheus\EntityDescriptor\PermanentEntity | $ref | The object to update, may be null |
preFormat(\Orpheus\EntityDescriptor\FieldDescriptor $field, string $value, array $input, \Orpheus\EntityDescriptor\PermanentEntity $ref)
Format value before being validated
\Orpheus\EntityDescriptor\FieldDescriptor | $field | The field to format |
string | $value | The field value to format |
array | $input | The input to validate |
\Orpheus\EntityDescriptor\PermanentEntity | $ref | The object to update, may be null |
format(\Orpheus\EntityDescriptor\FieldDescriptor $field, string $value)
Format value after being validated
\Orpheus\EntityDescriptor\FieldDescriptor | $field | The field to parse |
string | $value | The field value to parse |
parseValue(\Orpheus\EntityDescriptor\FieldDescriptor $field, string $value) : string
Parse the value from SQL scalar to PHP type
\Orpheus\EntityDescriptor\FieldDescriptor | $field | The field to parse |
string | $value | The field value to parse |
The parse $value