opensupports/server/models/Setting.php

21 lines
392 B
PHP
Executable File

<?php
class Setting extends DataStore {
const TABLE = 'setting';
public static function getSetting($name) {
return parent::getDataStore($name, 'name');
}
public static function getProps() {
return array(
'name',
'value',
'permission'
);
}
public function getValue() {
return $this->value;
}
}