85 $sql =
"SELECT * FROM {$this->table} WHERE name = :name";
117 INSERT INTO {$this->table} 118 SET name = :name, value = :value 119 ON DUPLICATE KEY UPDATE value = :value 127 $success = $this->db->insertData($sql,
$params);
131 return $success !==
false;
162 $lastupdated = $this->
get($functionname);
164 $lastupdated = (int) $lastupdated;
165 } elseif ($lastupdated !==
false) {
171 if (is_callable($functionname) && $lastupdated <= $timelastupdatedcheck) {
173 $this->
set($functionname,
time());
189 $max = self::MAX_NAME_LENGTH;
192 if (is_callable(
'mb_strlen')) {
199 $this->logger->error(
"The name length for configuration variables cannot be greater than $max");
__construct(Pool $cache, Database $db, Logger $logger, $table)
Constructor.
validateName($name)
Verify a datalist name is valid.
if($guid==elgg_get_logged_in_user_guid()) $name
runFunctionOnce($functionname, $timelastupdatedcheck=0)
Run a function one time per installation.
setCache(Pool $pool)
Set cache.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use