27 protected int $ttl = 90000;
52 $this->database->deleteData(
$delete);
65 throw new RangeException(__METHOD__ .
': TTL needs to be greater than or equal to -1');
94 return $this->database->insertData($insert);
106 $select->select(
'*');
109 $row = $this->database->getDataRow($select);
128 return $this->database->deleteData(
$delete);
Exception thrown to indicate range errors during program execution.
getTTL()
Get the configured Time-To-Live of the HMAC keys.
__construct(protected Database $database)
Create a new table handler.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
deleteHMAC(string $hmac)
Delete a HMAC key from the database.
loadHMAC(string $hmac)
Load a HMAC key from the database.
trait TimeUsing
Adds methods for setting the current time (for testing)
setTTL(int $ttl=0)
Set the Time-To-Live of HMAC keys.
static intoTable(string $table)
Returns a QueryBuilder for inserting data in a given table.
__destruct()
Cleanup expired HMAC keys.
getCurrentTime($modifier= '')
Get the (cloned) time.
storeHMAC(string $hmac)
Store a HMAC key for later use.
if(empty($entity_guid)||empty($recipient)||empty($muted_settings)||empty($hmac_token)) $hmac
Manage the contents of the hmac_cache table.
static fromTable(string $table)
Returns a QueryBuilder for deleting data from a given table.
const ELGG_VALUE_TIMESTAMP
static fromTable(string $table, string $alias=null)
Returns a QueryBuilder for selecting data from a given table.