SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/Models/OperatorModel.php

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