IAppConfig

interface OCP\IAppConfig
This class provides an easy way for apps to store config values in the
database.
Implemented by:OC\AppConfig
Source:lib/public/IAppConfig.php#35

Methods

public OCP\IAppConfig::hasKey($app, $key)
check if a key is set in the appconfig
Source:

lib/public/IAppConfig.php#43

Parameters:
  • $app (string)
  • $key (string)
Returns:

bool

Since:

7.0.0

public OCP\IAppConfig::getValues($app, $key)
get multiply values, either the app or key can be used as wildcard by setting it to false
Source:

lib/public/IAppConfig.php#53

Parameters:
  • $app (string | bool)
  • $key (string | bool)
Returns:

array | bool

Since:

7.0.0

public OCP\IAppConfig::getFilteredValues($app)
get all values of the app or and filters out sensitive data
Source:

lib/public/IAppConfig.php#62

Parameters:
  • $app (string)
Returns:

array

Since:

12.0.0

public OCP\IAppConfig::getApps()
Get all apps using the config
Source:

lib/public/IAppConfig.php#72

Returns:

array an array of app ids

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

Since:

7.0.0