CoolCMS API

Traits

Table of Contents

Traits

FavouriteTrait
Favourite adverts — storage is the session, which holds nothing but an array of `advertId`.
FollowTrait
Advert following; storage is the `AdvertFollower` DB entity (per logged-in user). Unlike the presenter-level `FollowTrait` it does not use `$this->advert` (null in a list); it loads the advert by `$advertId` instead.
ToggleRedrawTrait
Shared plumbing for toggle actions (favourite / follow).
On this page

Search results