SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/Models/PageWidgetModel.php

  1. <?php
  2. namespace Sprout\Models;
  3.  
  4. use Sprout\Helpers\Model;
  5.  
  6.  
  7. class PageWidgetModel extends Model
  8. {
  9. /** @var string */
  10. public $embed_key;
  11.  
  12. /** @var int */
  13. public $page_revision_id;
  14.  
  15. /** @var int */
  16. public $area_id;
  17.  
  18. /** @var int */
  19. public $active;
  20.  
  21. /** @var string */
  22. public $type;
  23.  
  24. /** @var string */
  25. public $settings;
  26.  
  27. /** @var string */
  28. public $conditions;
  29.  
  30. /** @var string */
  31. public $heading;
  32.  
  33. /** @var string */
  34. public $template;
  35.  
  36. /** @var int */
  37. public $record_order;
  38.  
  39.  
  40. public static function getTableName(): string
  41. {
  42. return 'page_widgets';
  43. }
  44. }
  45.