class posting

Methods

__construct(driver_interface $cache, config $config)

Constructor for posting lock

bool
acquire(int $creation_time, string $form_token)

Acquire lock for current posting form submission

Details

at line 36
__construct(driver_interface $cache, config $config)

Constructor for posting lock

Parameters

driver_interface $cache
config $config

at line 63
bool acquire(int $creation_time, string $form_token)

Acquire lock for current posting form submission

Parameters

int $creation_time

Creation time of form, must be checked already

string $form_token

Form token used for form, must be checked already

Return Value

bool

True if lock could be acquired, false if not