SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/Models/PageModel.php

  1. <?php
  2. namespace Sprout\Models;
  3.  
  4. use Sprout\Helpers\Model;
  5.  
  6.  
  7. class PageModel extends Model
  8. {
  9. /** @var int */
  10. public $parent_id;
  11.  
  12. /** @var int */
  13. public $subsite_id;
  14.  
  15. /** @var string */
  16. public $name;
  17.  
  18. /** @var string */
  19. public $slug;
  20.  
  21. /** @var int */
  22. public $active;
  23.  
  24. /** @var int */
  25. public $show_in_nav;
  26.  
  27. /** @var int */
  28. public $menu_group;
  29.  
  30. /** @var string|null */
  31. public $meta_keywords;
  32.  
  33. /** @var string|null */
  34. public $meta_description;
  35.  
  36. /** @var string|null */
  37. public $alt_browser_title;
  38.  
  39. /** @var string|null */
  40. public $alt_nav_title;
  41.  
  42. /** @var int|null */
  43. public $banner;
  44.  
  45. /** @var int|null */
  46. public $gallery_thumb;
  47.  
  48. /** @var string|null */
  49. public $alt_template;
  50.  
  51. /** @var int */
  52. public $admin_perm_type;
  53.  
  54. /** @var int */
  55. public $user_perm_type;
  56.  
  57. /** @var int */
  58. public $hit_count;
  59.  
  60. /** @var int */
  61. public $record_order;
  62.  
  63. /** @var string|null */
  64. public $modified_editor;
  65.  
  66. /** @var string|null */
  67. public $additional_css;
  68.  
  69. /** @var string|null */
  70. public $date_expire;
  71.  
  72. /** @var int|null */
  73. public $stale_age;
  74.  
  75. /** @var string */
  76. public $stale_reminder_sent;
  77.  
  78. /** @var string|null */
  79. public $date_added;
  80.  
  81. /** @var string|null */
  82. public $date_modified;
  83.  
  84.  
  85. public static function getTableName(): string
  86. {
  87. return 'pages';
  88. }
  89. }
  90.