SettingForm.php 851 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace addons\Authority\common\models;
  3. use yii\base\Model;
  4. /**
  5. * Class SettingForm
  6. * @package addons\Authority\common\models
  7. */
  8. class SettingForm extends Model
  9. {
  10. public $share_title;
  11. public $share_cover;
  12. public $share_desc;
  13. public $share_link;
  14. /**
  15. * {@inheritdoc}
  16. */
  17. public function rules()
  18. {
  19. return [
  20. [['share_title', 'share_cover'], 'string', 'max' => 100],
  21. [['share_link', 'share_desc'], 'string', 'max' => 255],
  22. [['share_link'], 'url'],
  23. ];
  24. }
  25. /**
  26. * @return array
  27. */
  28. public function attributeLabels()
  29. {
  30. return [
  31. 'share_title' => '分享标题',
  32. 'share_cover' => '分享封面',
  33. 'share_desc' => '分享描述',
  34. 'share_link' => '分享链接',
  35. ];
  36. }
  37. }
粤ICP备19079148号