Nextcloud PHP API (stable18)

IAppConfig

This class provides an easy way for apps to store config values in the database.

Tags
since
7.0.0

Table of Contents

getApps()  : array
Get all apps using the config
getFilteredValues()  : array
get all values of the app or and filters out sensitive data
getValues()  : array|false
get multiply values, either the app or key can be used as wildcard by setting it to false
hasKey()  : bool
check if a key is set in the appconfig

Methods

getApps()

Get all apps using the config

public getApps() : array
Tags
since
7.0.0
Return values
array

an array of app ids

This function returns a list of all apps that have at least one entry in the appconfig table.

getFilteredValues()

get all values of the app or and filters out sensitive data

public getFilteredValues(string $app) : array
Parameters
$app : string
Tags
since
12.0.0
Return values
array

getValues()

get multiply values, either the app or key can be used as wildcard by setting it to false

public getValues(string|false $app, string|false $key) : array|false
Parameters
$app : string|false
$key : string|false
Tags
since
7.0.0
Return values
array|false

hasKey()

check if a key is set in the appconfig

public hasKey(string $app, string $key) : bool
Parameters
$app : string
$key : string
Tags
since
7.0.0
Return values
bool

Search results