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.

53 lines
1.0 KiB

  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. use yii\behaviors\TimestampBehavior;
  5. /**
  6. * This is the model class for table "category".
  7. *
  8. * @property int $id
  9. * @property string $cat_name
  10. * @property string $icon
  11. * @property int $icon_type
  12. * @property string $description
  13. * @property int $sort_order
  14. * @property int $created_at
  15. * @property int $updated_at
  16. */
  17. class Category extends \yii\db\ActiveRecord {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName() {
  22. return 'category';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function attributeLabels() {
  28. return [
  29. 'id' => 'ID',
  30. 'cat_name' => 'Cat Name',
  31. 'icon' => 'Icon',
  32. 'icon_type' => 'Icon Type',
  33. 'description' => 'Description',
  34. 'sort_order' => 'Sort Order',
  35. 'created_at' => 'Created At',
  36. 'updated_at' => 'Updated At',
  37. ];
  38. }
  39. public function behaviors() {
  40. return [
  41. TimestampBehavior::className()
  42. ];
  43. }
  44. }