PHP 인터페이스 Piwik\Settings\Storage\Backend\BackendInterface

파일 보기 프로젝트 열기: piwik/piwik 0 사용 예제들

공개 메소드들

메소드 설명
delete ( ) : void Deletes all saved settings.
getStorageId ( ) : string Get an id that identifies the current storage. Eg Plugin_$pluginName_Settings could be a storage id for plugin settings. It's kind of like a cache key and the value will be actually used for this by a cache decorator.
load ( ) : array Loads previously saved setting values and returns them (if some were saved)
save ( array $values ) Saves (persists) the current setting values in the database. Always all values that belong to a group of settings or backend needs to be passed. Usually existing values will be deleted and new values will be saved

메소드 상세

delete() 공개 메소드

Deletes all saved settings.
public delete ( ) : void
리턴 void

getStorageId() 공개 메소드

Get an id that identifies the current storage. Eg Plugin_$pluginName_Settings could be a storage id for plugin settings. It's kind of like a cache key and the value will be actually used for this by a cache decorator.
public getStorageId ( ) : string
리턴 string

load() 공개 메소드

Loads previously saved setting values and returns them (if some were saved)
public load ( ) : array
리턴 array An array of key value pairs where $settingName => $settingValue. Eg array('settingName1' > 'settingValue1')

save() 공개 메소드

Saves (persists) the current setting values in the database. Always all values that belong to a group of settings or backend needs to be passed. Usually existing values will be deleted and new values will be saved
public save ( array $values )
$values array An array of key value pairs where $settingName => $settingValue. Eg array('settingName1' > 'settingValue1')