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.
56 lines
1.2 KiB
56 lines
1.2 KiB
<?php |
|
|
|
namespace app\models; |
|
|
|
use Yii; |
|
|
|
/** |
|
* This is the model class for table "{{%printer_setting}}". |
|
* |
|
* @property integer $id |
|
* @property integer $store_id |
|
* @property integer $printer_id |
|
* @property integer $block_id |
|
* @property string $type |
|
* @property integer $is_delete |
|
* @property integer $addtime |
|
* @property integer $is_attr |
|
*/ |
|
class PrinterSetting extends \yii\db\ActiveRecord |
|
{ |
|
/** |
|
* @inheritdoc |
|
*/ |
|
public static function tableName() |
|
{ |
|
return '{{%printer_setting}}'; |
|
} |
|
|
|
/** |
|
* @inheritdoc |
|
*/ |
|
public function rules() |
|
{ |
|
return [ |
|
[['store_id', 'printer_id', 'block_id', 'is_delete', 'addtime', 'is_attr'], 'integer'], |
|
[['type'], 'string'], |
|
]; |
|
} |
|
|
|
/** |
|
* @inheritdoc |
|
*/ |
|
public function attributeLabels() |
|
{ |
|
return [ |
|
'id' => 'ID', |
|
'store_id' => 'Store ID', |
|
'printer_id' => '打印机ID', |
|
'block_id' => '打印模板ID', |
|
'type' => '打印方式 ', |
|
'is_delete' => 'Is Delete', |
|
'addtime' => 'Addtime', |
|
'is_attr' => '是否打印规格 0--不打印 1--打印', |
|
]; |
|
} |
|
}
|
|
|