Add write support to Config backends with add/set methods
This commit is contained in:
26
source/lib/SihnonFramework/Config/IUpdateable.class.php
Normal file
26
source/lib/SihnonFramework/Config/IUpdateable.class.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
interface SihnonFramework_Config_IUpdateable {
|
||||
|
||||
/**
|
||||
*
|
||||
* Change the value of a setting
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
*/
|
||||
public function set($key, $value);
|
||||
|
||||
/**
|
||||
*
|
||||
* Add a new setting
|
||||
* @param string $key
|
||||
* @param string $type
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
*/
|
||||
public function add($key, $type, $value);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user