mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2024-04-21 12:31:40 +00:00
16 lines
395 B
PHP
16 lines
395 B
PHP
<?php
|
|
namespace app\index\model;
|
|
|
|
use think\Model;
|
|
use think\Db;
|
|
|
|
class Option extends Model{
|
|
static function getValues($groups = ['basic']){
|
|
$t = Db::name('options')->where('option_type','in',$groups)->column('option_value','option_name');
|
|
return $t;
|
|
}
|
|
static function getValue($optionName){
|
|
return Db::name('options')->where('option_name',$optionName)->value('option_value');
|
|
}
|
|
}
|
|
?>
|