Lines Matching defs:value
275 * Execute a query that returns a single value
292 * Execute a query that returns a list of key-value pairs
294 * The first column is used as key, the second as value. Any additional colums are ignored.
320 * Get a config value from the opt table
323 * @param mixed $default What to return if the value isn't set
329 $value = $this->queryValue("SELECT val FROM opts WHERE opt = ?", [$opt]);
330 if ($value === null) {
333 return $value;
337 * Set a config value in the opt table
340 * @param $value
343 public function setOpt($opt, $value)
345 $this->exec('REPLACE INTO opts (opt,val) VALUES (?,?)', [$opt, $value]);
393 $values = implode(',', array_map(function ($value) {
394 if ($value === null) return 'NULL';
395 return $this->pdo->quote($value);