\common\modelsArticleCategory

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

Summary

Methods
Properties
Constants
behaviors()
saveModel()
deleteModel()
filterStr()
formName()
tableName()
rules()
attributeLabels()
$id
$category_name
$parent_id
$parents
SCENARIO_INSERT
SCENARIO_UPDATE
STATUS_ACTIVE
STATUS_DISABLED
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'

STATUS_ACTIVE

STATUS_ACTIVE = 0

状态

STATUS_DISABLED

STATUS_DISABLED = 1

Properties

$id

$id : integer

Type

integer

$category_name

$category_name : string

Type

string

$parent_id

$parent_id : integer

Type

integer

$parents

$parents : string

Type

string

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()