CoolCMS API

ContactParameter
in package

FinalYes

Which advert parameters (Bazaar adverts, Comcat company profiles) carry the owner's contact data — the values that the anonymization of a deleted account deletes from the user's own adverts.

The parameter list is edited in the administration, so two signals the code already relies on are combined; the display name is never consulted:

  • the input type (ParameterType::EMAIL, ParameterType::TEL) — the detail renders such a value as a mailto/tel link,
  • the system key the code hard-wires for the contact: email (copied into adverts.email by the advert form, pre-filled from the account), phone (seller card, phone reveal), street (detail and map, pre-filled from the account). Comcat stores its e-mail as a text parameter, so the key is needed next to the type.

Deliberately not here: city/zip/country/region (location of the advert, searchable), names (firstname, lastname, Comcat contactName) and url — the user decided only e-mail, phone and street (3. 10. 2026).

Table of Contents

Constants

KEYS  : array<string|int, mixed> = ['email', 'phone', 'street']
TYPES  : array<string|int, mixed> = [\App\Core\Base\Shared\Shared\Models\Entities\P...

Methods

isContact()  : bool

Constants

KEYS

public array<string|int, mixed> KEYS = ['email', 'phone', 'street']

TYPES

public array<string|int, mixed> TYPES = [\App\Core\Base\Shared\Shared\Models\Entities\ParameterType::EMAIL, \App\Core\Base\Shared\Shared\Models\Entities\ParameterType::TEL]

Methods

isContact()

public static isContact(int|null $type, string|null $key) : bool
Parameters
$type : int|null
$key : string|null
Return values
bool
On this page

Search results