CoolCMS API

EditDeleteTrait

"Delete company profile" section.

Tags
requires

EditAdvertFormTrait shares $advert and checkAutorization()

Table of Contents

Methods

handleDeleteAdvert()  : void
Signal that deletes the company profile.

Methods

handleDeleteAdvert()

Signal that deletes the company profile.

public handleDeleteAdvert() : void

Soft delete: sets deleted = 1 (like the deleteLongExpired cron). The deleted profile cannot stay on the edit page, hence the redirect to the homepage.

On this page

Search results