Setting
class Setting extends Model
Constants
CREATED_AT |
|
UPDATED_AT |
|
Properties
static protected | $table | ||
static protected | $set_array | from Model | |
static protected | $primaryKey | from Model | |
static protected | $incrementing | from Model | |
static protected | $keyType | 如果主键不是一个整数,则应该在模型上设置 string. | from Model |
static protected | $timestamps | 默认数据表中存在 created_at 和 updated_at 这两个字段. | from Model |
static protected | $connection | from Model | |
static protected | $setting_array |
Methods
static array
list(int $rid, string $git_type = 'github')
返回某仓库的设置列表.
static string
get(int $rid, string $setting_name, string $git_type = 'github')
返回某个设置的值
static int
update(int $rid, string $setting_name, string $setting_value, string $git_type = 'github')
No description
Details
in Model at line 50
static array|string
all()
取得所有数据.
in Model at line 68
static int|array
find(int $table_primary_key_id)
通过主键查找数据.
in Model at line 86
static void
first()
取回符合查询限制的第一个模型 .
..
in Model at line 99
static array|int
findOrFail(int|array $table_primary_key_id)
通过主键查找数据,找不到则抛出异常.
in Model at line 110
static void
firstOrFail()
in Model at line 117
static string|null
getTableName()
in Model at line 132
void
save()
in Model at line 145
void
__set($name, $value)
in Model at line 157
static array|string
getLastKeyId()
in Model at line 167
static void
destroy(int|array $primaryKeyValue)
at line 25
static array
list(int $rid, string $git_type = 'github')
返回某仓库的设置列表.
at line 47
static string
get(int $rid, string $setting_name, string $git_type = 'github')
返回某个设置的值