EditExtendTrait
"Extend advert" 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
- Handles the advert extension signal before expiration.
- isAdvertNearExpiration() : bool
- Returns whether the advert is within `extendWindowDays` before expiration (and not yet expired), so the "Extend" tab is offered.
Constants
extendWindowDays
Number of days before expiration when extending is offered.
private
mixed
extendWindowDays
= 2
Methods
handleExtendAdvert()
Handles the advert extension signal before expiration.
public
handleExtendAdvert() : void
The Api layer computes the new expiration from the intervals of the advert categories.
isAdvertNearExpiration()
Returns whether the advert is within `extendWindowDays` before expiration (and not yet expired), so the "Extend" tab is offered.
protected
isAdvertNearExpiration() : bool