A generic bag containing properties and their values.
getArrayCopy() : array
array
getInvalidPropertyErrors() : array
array
getInvalidPropertyNames() : string[]
string[]
getPropertyValue(string $property) : mixed
string
The name of the property to check.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
If the property is not contained within the bag. |
---|
mixed
getPropertyValueErrors(string $property) : array
string
The name of the property to retrieve the errors for.
array
hasInvalidPropertyValues() : bool
bool
hasNoInvalidPropertyValues() : bool
bool
hasPropertyValue(string $property) : bool
string
The name of the property to check.
bool
isPropertyValueInvalid(string $property) : bool
string
The name of the property to check.
bool
isPropertyValueValid(string $property) : bool
string
The name of the property to check.
bool
markPropertyValueAsInvalid(string $property, string|array|mixed $error, bool $append) : \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
string
The name of the property to mark.
string
array
mixed
The error message to attach for this property.
bool
Append this error and keep previous errors (optional).
removePropertyValue(string $property) : \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
string
The name of the property to remove.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
If the property is not contained within the bag. |
---|
resetPropertyValueErrors(string $property) : \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
string
The name of the property to reset.
setPropertyValue(string $property, mixed $value) : \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
string
The name of the property to set.
mixed
The value to use.