SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/Models/FileModel.php

  1. <?php
  2. namespace Sprout\Models;
  3.  
  4. use Sprout\Helpers\Model;
  5.  
  6.  
  7. class FileModel extends Model
  8. {
  9. /** @var int */
  10. public $subsite_id;
  11.  
  12. /** @var string */
  13. public $name;
  14.  
  15. /** @var string */
  16. public $filename;
  17.  
  18. /** @var int */
  19. public $type;
  20.  
  21. /** @var string */
  22. public $author;
  23.  
  24. /** @var int */
  25. public $embed_author;
  26.  
  27. /** @var string */
  28. public $description;
  29.  
  30. /** @var string */
  31. public $focal_points;
  32.  
  33. /** @var string|null */
  34. public $plaintext;
  35.  
  36. /** @var int|null */
  37. public $document_type;
  38.  
  39. /** @var string|null */
  40. public $date_added;
  41.  
  42. /** @var string|null */
  43. public $date_modified;
  44.  
  45. /** @var string|null */
  46. public $date_published;
  47.  
  48. /** @var string */
  49. public $enable_indexing;
  50.  
  51. /** @var string|null */
  52. public $date_file_modified;
  53.  
  54. /** @var string */
  55. public $sha1;
  56.  
  57.  
  58. public static function getTableName(): string
  59. {
  60. return 'files';
  61. }
  62. }
  63.