CoolCMS API

Traits

Table of Contents

Traits

BuildAdvertTrait
Builds the Advert entity from submitted values: the entity's own columns (password, IP, user, language, email, region, expiration). `categoryRels` is not populated; it is passed via meta in `processSubmit`. The hydrator would otherwise fail on a newly created advert (id=null) when generating the reference key for association-PK rel entities.
FormFieldsTrait
Meta fields beyond the parameters: the edit password and reCAPTCHA.
LoadingTrait
Loads parameters, parameter groups and extra items for selects (currency, region), plus pre-fill values from the edited Advert entity.
UploaderTrait
Configures the shared UploaderDropzone components for IMAGE_UPLOADER and FILE_UPLOADER parameters. Each type has its own child (`imgUploader` / `fileUploader`) with its own temp folder. Upload/remove signals go straight to the child uploader.
On this page

Search results