SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/Models/SubsiteModel.php

  1. <?php
  2. namespace Sprout\Models;
  3.  
  4. use Sprout\Helpers\Model;
  5.  
  6.  
  7. class SubsiteModel extends Model
  8. {
  9. /** @var int */
  10. public $active;
  11.  
  12. /** @var string */
  13. public $name;
  14.  
  15. /** @var string */
  16. public $code;
  17.  
  18. /** @var string|null */
  19. public $cond_domain;
  20.  
  21. /** @var string|null */
  22. public $cond_directory;
  23.  
  24. /** @var int */
  25. public $mobile;
  26.  
  27. /** @var int */
  28. public $content_id;
  29.  
  30. /** @var int */
  31. public $admin_perm_category;
  32.  
  33. /** @var int */
  34. public $require_admin;
  35.  
  36. /** @var int */
  37. public $require_user;
  38.  
  39. /** @var int */
  40. public $record_order;
  41.  
  42. /** @var string|null */
  43. public $date_added;
  44.  
  45. /** @var string|null */
  46. public $date_modified;
  47.  
  48.  
  49. public static function getTableName(): string
  50. {
  51. return 'subsites';
  52. }
  53. }
  54.