ArraysInitTrait
Table of Contents
Constants
- SPECIFICATION_SKIP_KEYS : array<string|int, string> = ['name', 'keywords', 'text', 'type', 'state', '...
Properties
- $blacklistedWordManager : BlacklistedWordManager
- $blacklistedWords : array<string|int, string>
- $parameterValues : array<string|int, object>
Methods
- initParameterValues() : self
- prepareBlacklistedWords() : void
- prepareSpecifications() : void
- Builds the profile specification array for rendering (`name`, `value`, `type`).
Constants
SPECIFICATION_SKIP_KEYS
private
array<string|int, string>
SPECIFICATION_SKIP_KEYS
= ['name', 'keywords', 'text', 'type', 'state', 'street', 'city', 'zip', 'country', 'regionId', 'latitude', 'longitude', 'is_vehicle', 'email', 'phone', 'url', 'datetime', 'date', 'time']
parameter keys that are not rendered in the specification section
Properties
$blacklistedWordManager
public
BlacklistedWordManager
$blacklistedWordManager
Attributes
- #[Inject]
$blacklistedWords
private
array<string|int, string>
$blacklistedWords
= []
banned words in the target language, for the render-time replacement
$parameterValues
private
array<string|int, object>
$parameterValues
= []
parameter options by id
Methods
initParameterValues()
public
initParameterValues() : self
Return values
selfprepareBlacklistedWords()
protected
prepareBlacklistedWords() : void
prepareSpecifications()
Builds the profile specification array for rendering (`name`, `value`, `type`).
protected
prepareSpecifications(Advert $advert) : void
Skips the skipped keys, child option parameters and empty values, so an empty array means there is nothing to show.
Parameters
- $advert : Advert