Meta.php 984 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "pop_meta".
  5. *
  6. * @property integer $id
  7. * @property string $title
  8. * @property string $keywords
  9. * @property string $description
  10. * @property string $entity
  11. * @property integer $entity_id
  12. */
  13. class Meta extends \yii\db\ActiveRecord
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public static function tableName()
  19. {
  20. return '{{%meta}}';
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['entity_id'], 'integer'],
  29. [['title', 'keywords', 'description', 'entity'], 'string', 'max' => 128],
  30. ];
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function attributeLabels()
  36. {
  37. return [
  38. 'id' => 'ID',
  39. 'title' => 'Title',
  40. 'keywords' => 'Keywords',
  41. 'description' => 'Description',
  42. 'entity' => 'entity',
  43. 'entity_id' => 'entity ID',
  44. ];
  45. }
  46. }