Article.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use app\models\common\admin\log\CommonActionLog;
  9. use Yii;
  10. /**
  11. * This is the model class for table "{{%article}}".
  12. *
  13. * @property integer $id
  14. * @property integer $store_id
  15. * @property integer $article_cat_id
  16. * @property string $title
  17. * @property string $content
  18. * @property integer $sort
  19. * @property integer $addtime
  20. * @property integer $is_delete
  21. * @property integer $is_show
  22. */
  23. class Article extends \yii\db\ActiveRecord
  24. {
  25. /**
  26. * @inheritdoc
  27. */
  28. public static function tableName()
  29. {
  30. return '{{%article}}';
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['store_id', 'article_cat_id', 'sort', 'addtime', 'is_delete', 'is_show'], 'integer'],
  39. [['content'], 'string'],
  40. [['title'], 'string', 'max' => 255],
  41. ];
  42. }
  43. /**
  44. * @inheritdoc
  45. */
  46. public function attributeLabels()
  47. {
  48. return [
  49. 'id' => 'ID',
  50. 'store_id' => 'Store ID',
  51. 'article_cat_id' => '分类id:1=关于我们,2=服务中心',
  52. 'title' => '标题',
  53. 'content' => '内容',
  54. 'sort' => '排序:升序',
  55. 'addtime' => 'Addtime',
  56. 'is_delete' => 'Is Delete',
  57. 'is_show' => '是否显示',
  58. ];
  59. }
  60. }