EditExtendTrait
"Extend company profile" section, shown in the window before expiration.
Tags
Table of Contents
Constants
- extendWindowDays : mixed = 2
- Number of days before expiration when extending is offered.
Methods
- handleExtendAdvert() : void
- Signal that extends the company profile before expiration.
- isAdvertNearExpiration() : bool
- Is the profile within `extendWindowDays` before expiration (and not yet expired)? Then the "Extend" tab is offered.
Constants
extendWindowDays
Number of days before expiration when extending is offered.
private
mixed
extendWindowDays
= 2
Methods
handleExtendAdvert()
Signal that extends the company profile before expiration.
public
handleExtendAdvert() : void
The Api layer computes the new expiration from the intervals of the profile categories.
isAdvertNearExpiration()
Is the profile within `extendWindowDays` before expiration (and not yet expired)? Then the "Extend" tab is offered.
protected
isAdvertNearExpiration() : bool