VuFind API Documentation

ExpireAuthHashesCommand extends AbstractExpireCommand
in package

Console command: expire authentication hashes.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

$commandDescription  : string
Help description for the command.
$defaultAge  : int|null
Default age of rows (in days) to delete. $minAge is used if $defaultAge is null.
$minAge  : int
Minimum legal age (in days) of rows to delete.
$rowLabel  : string
Label to use for rows in help messages.
$service  : DeleteExpiredInterface
$table  : DeleteExpiredInterface
Table on which to expire rows
__construct()  : mixed
Constructor
configure()  : void
Configure the command.
execute()  : int
Run the command.
getDateThreshold()  : DateTime
Convert days to a date threshold
getTimestampedMessage()  : string
Add a time stamp to a message

Properties

$commandDescription

Help description for the command.

protected string $commandDescription = 'Database auth_hash table cleanup'

$defaultAge

Default age of rows (in days) to delete. $minAge is used if $defaultAge is null.

protected int|null $defaultAge = null

$rowLabel

Label to use for rows in help messages.

protected string $rowLabel = 'authentication hashes'

Methods

__construct()

Constructor

public __construct(DeleteExpiredInterface $service[, string|null $name = null ]) : mixed
Parameters
$service : DeleteExpiredInterface

Service on which to expire rows

$name : string|null = null

The name of the command; passing null means it must be set in configure()

Return values
mixed

execute()

Run the command.

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface

Input object

$output : OutputInterface

Output object

Return values
int

0 for success

getDateThreshold()

Convert days to a date threshold

protected getDateThreshold(float $daysOld) : DateTime
Parameters
$daysOld : float

Days before now

Return values
DateTime

getTimestampedMessage()

Add a time stamp to a message

protected getTimestampedMessage(string $msg) : string
Parameters
$msg : string

Message

Return values
string

Search results