com\setasign\SetaSite\PropertyContainer\Property
StringProperty
File: /SetaSite/src/PropertyContainer/Property/StringProperty.php
Class hierarchy
Implements
Summary
Constants
VALIDATOR_EMPTY
VALIDATOR_MAX_LENGTH
VALIDATOR_MIN_LENGTH
VALIDATOR_REGEX
The regex will be checked via preg_match.
Regex must not contain a delimiter, slash(/) will be automatically used as delimiter
Has two optional config params: regexModifier & regexMessage
Note: The regex need to be compatible to php preg_match & javascript String::match
See
VALIDATOR_SYMBOLS
Allowed symbols
This validator is case-sensitive
Properties
$config
protected \com\setasign\SetaFramework\Config\Config AbstractProperty::$config
$value
protected mixed AbstractProperty::$value
Static Methods
cleanupConfig()
public static AbstractProperty::cleanupConfig (
\com\setasign\SetaFramework\Config\Config $config
): voidParameters
- $config : \com\setasign\SetaFramework\Config\Config
Methods
__construct()
public AbstractProperty::__construct (
\com\setasign\SetaSite\PropertyContainer\ContainerParent\ContainerParentInterface $containerParent,
?\com\setasign\SetaFramework\Config\Config $config = null
)?\com\setasign\SetaFramework\Config\Config $config = null
Parameters
- $containerParent : \com\setasign\SetaSite\PropertyContainer\ContainerParent\ContainerParentInterface
- $config : ?\com\setasign\SetaFramework\Config\Config
setValue()
Sets the value
Strings that are empty will be null
Parameters
- $value : mixed
- $ignoreEditable : bool
Ignore editable property, only for internal use!
