BasicImage.php 533 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\models;
  3. use yii\base\Model;
  4. /**
  5. * This is the model class for table "topic_images".
  6. *
  7. * @property int $id
  8. * @property int|null $topic_id
  9. * @property string|null $uploaded_at
  10. * @property string|null $alt
  11. * @property string|null $ext
  12. */
  13. class BasicImage extends Model
  14. {
  15. public $topic_id = NULL;
  16. const SIZE_HD = "_size1";
  17. const SIZE_SD = "_size2";
  18. const SIZE_SD_16_9 = "_size2";
  19. const SIZE_LQ = "_size4";
  20. public function getUrl($size = self::SIZE_HD){
  21. return "";
  22. }
  23. }