You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
474 B
24 lines
474 B
<?php
|
|
namespace app\model;
|
|
/**
|
|
* @property int id
|
|
* @property string language_name
|
|
* @property string language_code
|
|
*/
|
|
class LanguageSettingModel extends BaseModel
|
|
{
|
|
protected $name = 'language_setting';
|
|
protected $pk = 'id';
|
|
|
|
public static function getLangList():array
|
|
{
|
|
$list = self::where(1)->field('language_name,language_code')->select();
|
|
if(empty($list)){
|
|
return [];
|
|
}
|
|
return $list->toArray();
|
|
}
|
|
|
|
|
|
|
|
}
|