PHP Class OCA\Richdocuments\AppConfig

Show file Open project: owncloud/richdocuments

Public Methods

Method Description
__construct ( OCP\IConfig $config )
getAppValue ( string $key ) : string Get a value by key
getUserValue ( string $userId, string $key ) : string Get a value by key for a user
setAppValue ( string $key, string $value ) : string Set a value by key
setUserValue ( string $userId, string $key, string $value ) : string Set a value by key for a user

Method Details

__construct() public method

public __construct ( OCP\IConfig $config )
$config OCP\IConfig

getAppValue() public method

Get a value by key
public getAppValue ( string $key ) : string
$key string
return string

getUserValue() public method

Get a value by key for a user
public getUserValue ( string $userId, string $key ) : string
$userId string
$key string
return string

setAppValue() public method

Set a value by key
public setAppValue ( string $key, string $value ) : string
$key string
$value string
return string

setUserValue() public method

Set a value by key for a user
public setUserValue ( string $userId, string $key, string $value ) : string
$userId string
$key string
$value string
return string