CoolCMS API

EditDeleteTrait

"Delete advert" section.

Tags
requires

EditAdvertFormTrait: shares $advert and checkAutorization()

Table of Contents

Methods

handleDeleteAdvert()  : void
Handles the advert deletion signal.

Methods

handleDeleteAdvert()

Handles the advert deletion signal.

public handleDeleteAdvert() : void

Soft delete: sets the column deleted = 1 (same as the cron deleteLongExpired). Editing cannot continue after deletion, so it redirects to the homepage.

On this page

Search results