CoolCMS API

EditRenewTrait

"Renew company profile" section, shown only for an expired profile.

Tags
requires

EditAdvertFormTrait shares $advert and checkAutorization()

Table of Contents

Methods

handleRenewAdvert()  : void
Signal that renews an expired company profile.
isAdvertExpired()  : bool
Is the profile expired? Then the "Renew" tab is offered.

Methods

handleRenewAdvert()

Signal that renews an expired company profile.

public handleRenewAdvert() : void

Shares the computation with extending: extendExpiration() counts the new expiration of an expired profile from today (see the Api AdvertExpirationTrait).

isAdvertExpired()

Is the profile expired? Then the "Renew" tab is offered.

protected isAdvertExpired() : bool
Return values
bool
On this page

Search results