\common\modelsUploadFiles

This is the model class for table "{{%upload_files}}".

Summary

Methods
Properties
Constants
behaviors()
saveModel()
deleteModel()
filterStr()
formName()
tableName()
rules()
attributeLabels()
$id
$save_name
$path
$size
$extend
$md5
$token
$created_at
$updated_at
SCENARIO_INSERT
SCENARIO_UPDATE
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

SCENARIO_INSERT

SCENARIO_INSERT = 'insert'

SCENARIO_UPDATE

SCENARIO_UPDATE = 'update'

Properties

$id

$id : integer

Type

integer

$save_name

$save_name : string

Type

string

$path

$path : string

Type

string

$size

$size : integer

Type

integer

$extend

$extend : string

Type

string

$md5

$md5 : string

Type

string

$token

$token : string

Type

string

$created_at

$created_at : integer

Type

integer

$updated_at

$updated_at : integer

Type

integer

Methods

behaviors()

behaviors() 

saveModel()

saveModel(boolean|object  $transaction = false) 

Parameters

boolean|object $transaction

\yii\db\Transaction

Throws

\common\exceptions\DatabaseException

deleteModel()

deleteModel(boolean|object  $transaction = false) 

Parameters

boolean|object $transaction

\yii\db\Transaction

Throws

\common\exceptions\DatabaseException

filterStr()

filterStr(string  $str) : string

过滤空格 ' " <> 转化为 html实体

Parameters

string $str

原字符串

Returns

string

formName()

formName() 

tableName()

tableName() 

rules()

rules() 

attributeLabels()

attributeLabels()