A generic bag containing properties and their values.
getArrayCopy() : array
arraygetInvalidPropertyErrors() : array
arraygetInvalidPropertyNames() : string[]
string[]getPropertyValue(string $property) : mixed
stringThe name of the property to check.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
If the property is not contained within the bag. |
|---|
mixedgetPropertyValueErrors(string $property) : array
stringThe name of the property to retrieve the errors for.
arrayhasInvalidPropertyValues() : bool
boolhasNoInvalidPropertyValues() : bool
boolhasPropertyValue(string $property) : bool
stringThe name of the property to check.
boolisPropertyValueInvalid(string $property) : bool
stringThe name of the property to check.
boolisPropertyValueValid(string $property) : bool
stringThe name of the property to check.
boolmarkPropertyValueAsInvalid(string $property, string|array|mixed $error, bool $append) : \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
stringThe name of the property to mark.
stringarraymixedThe error message to attach for this property.
boolAppend this error and keep previous errors (optional).
removePropertyValue(string $property) : \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
stringThe 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
stringThe name of the property to reset.
setPropertyValue(string $property, mixed $value) : \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag
stringThe name of the property to set.
mixedThe value to use.