2016-07-26 23:30:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Setting extends DataStore {
|
|
|
|
const TABLE = 'setting';
|
|
|
|
|
|
|
|
public static function getSetting($name) {
|
2016-07-27 18:58:19 +02:00
|
|
|
return parent::getDataStore($name, 'name');
|
2016-07-26 23:30:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static function getProps() {
|
|
|
|
return array(
|
|
|
|
'name',
|
|
|
|
'value',
|
|
|
|
'permission'
|
|
|
|
);
|
|
|
|
}
|
2016-08-04 05:59:04 +02:00
|
|
|
|
|
|
|
public function getValue() {
|
|
|
|
return $this->value;
|
|
|
|
}
|
2016-07-26 23:30:51 +02:00
|
|
|
}
|