PrivateBin\Data\Database::_getConfig PHP Метод

_getConfig() приватный статический Метод

get a value by key from the config table
private static _getConfig ( string $key ) : string
$key string
Результат string
    private static function _getConfig($key)
    {
        $row = self::_select('SELECT value FROM ' . self::_sanitizeIdentifier('config') . ' WHERE id = ?', array($key), true);
        return $row['value'];
    }