Function __global->_get_value

Definitions

sources/config.php

  • Retrieve a value from the database directly (and store it in the smart cache).You should use get_value or get_value_newer_than instead.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$name ID_TEXT No No required parameter N/A N/A The name of the value to get
$end string No No Blank (empty string) N/A N/A Additional WHERE query

Returns

  • The value (null: not found, or database error if running installer or upgrader)
  • Type: ?string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Retrieve a value from the database directly (and store it in the smart cache).You should use get_value or get_value_newer_than instead.
 *
 * @param  ID_TEXT $name The name of the value to get
 * @param  string $end Additional WHERE query
 * @return ?string The value (null: not found, or database error if running installer or upgrader)
 */

function _get_value(string $name, string $end = '') : ?string