Tsugi

Expire
in package

PII / record-expiry helpers for the Settings controller.

Ported from the former settings/expire/expire_util.php.

Table of Contents

Properties

$context_days  : mixed
$pii_days  : mixed
$tenant_days  : mixed
$user_days  : mixed

Methods

countTable()  : mixed
expirableRecords()  : mixed
expirableWhere()  : array{sql: string, params: array}
ownerClause()  : array{sql: string, params: array}
piiCount()  : mixed
piiWhere()  : array{sql: string, params: array}
safeKeyWhere()  : mixed
sanityCheck()  : mixed
sanityCheckDays()  : string|true
Clamp expiry-day values to minima. Returns an error string or true.

Properties

$context_days

public static mixed $context_days

$pii_days

public static mixed $pii_days

$tenant_days

public static mixed $tenant_days

$user_days

public static mixed $user_days

Methods

countTable()

public static countTable(mixed $table) : mixed
Parameters
$table : mixed

expirableRecords()

public static expirableRecords(mixed $table, mixed $days) : mixed
Parameters
$table : mixed
$days : mixed

expirableWhere()

public static expirableWhere(mixed $days) : array{sql: string, params: array}
Parameters
$days : mixed
Return values
array{sql: string, params: array}

ownerClause()

public static ownerClause() : array{sql: string, params: array}
Return values
array{sql: string, params: array}

piiCount()

public static piiCount(mixed $days) : mixed
Parameters
$days : mixed

piiWhere()

public static piiWhere(mixed $days) : array{sql: string, params: array}
Parameters
$days : mixed
Return values
array{sql: string, params: array}

safeKeyWhere()

public static safeKeyWhere() : mixed

sanityCheck()

public static sanityCheck() : mixed

sanityCheckDays()

Clamp expiry-day values to minima. Returns an error string or true.

public static sanityCheckDays([string|false $base = false ][, int|false $days = false ]) : string|true
Parameters
$base : string|false = false
$days : int|false = false
Return values
string|true

        
On this page

Search results