class Env 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

Methods

static void
chunk(int $count, Closure $closer)

结果分块.

from Model
static array|string
all()

取得所有数据.

from Model
static int|array
find(int $table_primary_key_id)

通过主键查找数据.

from Model
static void
first()

取回符合查询限制的第一个模型 .

from Model
static array|int
findOrFail(int|array $table_primary_key_id)

通过主键查找数据,找不到则抛出异常.

from Model
static void
firstOrFail()

No description

from Model
static string|null
getTableName()

No description

from Model
void
save()

No description

from Model
void
__set($name, $value)

No description

from Model
static array|string
getLastKeyId()

No description

from Model
static void
destroy(int|array $primaryKeyValue)

No description

from Model
static array
list(int $rid, $git_type = 'github')

No description

static int
create(int $rid, string $name, string $value, bool $public, $git_type = 'github')

No description

static int
update(int $id, int $rid, string $value, bool $public, $git_type = 'github')

No description

static int
delete(int $id, int $rid, $git_type = 'github')

No description

static string
get(int $id, int $rid, bool $show = false, $git_type = 'github')

No description

Details

in Model at line 39
static void chunk(int $count, Closure $closer)

结果分块.

Parameters

int $count
Closure $closer

Return Value

void

in Model at line 50
static array|string all()

取得所有数据.

Return Value

array|string

Exceptions

Exception

in Model at line 68
static int|array find(int $table_primary_key_id)

通过主键查找数据.

Parameters

int $table_primary_key_id

Return Value

int|array

Exceptions

Exception

in Model at line 86
static void first()

取回符合查询限制的第一个模型 .

..

Return Value

void

in Model at line 99
static array|int findOrFail(int|array $table_primary_key_id)

通过主键查找数据,找不到则抛出异常.

Parameters

int|array $table_primary_key_id

Return Value

array|int

Exceptions

Exception

in Model at line 110
static void firstOrFail()

Return Value

void

in Model at line 117
static string|null getTableName()

Return Value

string|null

in Model at line 132
void save()

Return Value

void

Exceptions

Exception

in Model at line 145
void __set($name, $value)

Parameters

$name
$value

Return Value

void

in Model at line 157
static array|string getLastKeyId()

Return Value

array|string

Exceptions

Exception

in Model at line 167
static void destroy(int|array $primaryKeyValue)

Parameters

int|array $primaryKeyValue 通过主键删除数据

Return Value

void

at line 22
static array list(int $rid, $git_type = 'github')

Parameters

int $rid
$git_type

Return Value

array

Exceptions

Exception

at line 36
static int create(int $rid, string $name, string $value, bool $public, $git_type = 'github')

Parameters

int $rid
string $name
string $value
bool $public
$git_type

Return Value

int

Exceptions

Exception

at line 50
static int update(int $id, int $rid, string $value, bool $public, $git_type = 'github')

Parameters

int $id
int $rid
string $value
bool $public
$git_type

Return Value

int

Exceptions

Exception

at line 64
static int delete(int $id, int $rid, $git_type = 'github')

Parameters

int $id
int $rid
$git_type

Return Value

int

Exceptions

Exception

at line 78
static string get(int $id, int $rid, bool $show = false, $git_type = 'github')

Parameters

int $id
int $rid
bool $show
$git_type

Return Value

string

Exceptions

Exception