Slide.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace frontend\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "bit_slide".
  6. *
  7. * @property integer $id
  8. * @property string $create_date
  9. * @property string $modify_date
  10. * @property string $image_path
  11. * @property integer $language
  12. * @property string $other
  13. * @property string $title
  14. * @property string $url
  15. */
  16. class Slide extends \yii\db\ActiveRecord
  17. {
  18. /**
  19. * @inheritdoc
  20. */
  21. public static function tableName()
  22. {
  23. return 'bit_slide';
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['create_date', 'modify_date'], 'safe'],
  32. [['language'], 'required'],
  33. [['language'], 'integer'],
  34. [['image_path', 'other', 'title', 'url'], 'string', 'max' => 255],
  35. ];
  36. }
  37. /**
  38. * @inheritdoc
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'create_date' => 'Create Date',
  45. 'modify_date' => 'Modify Date',
  46. 'image_path' => 'Image Path',
  47. 'language' => 'Language',
  48. 'other' => 'Other',
  49. 'title' => 'Title',
  50. 'url' => 'Url',
  51. ];
  52. }
  53. }