EmailTemplate.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. namespace ModulesGarden\Servers\ZimbraEmail\Core\Models\Whmcs;
  3. use \Illuminate\Database\Eloquent\Model as EloquentModel;
  4. /**
  5. * Description of Email Tempaltes
  6. *
  7. * @var int id
  8. * @var string type
  9. * @var string name
  10. * @var string subject
  11. * @var string message
  12. * @var string attachments
  13. * @var string fromname
  14. * @var string fromemail
  15. * @var int disabled
  16. * @var int custom
  17. * @var string language
  18. * @var string copyto
  19. * @var int plaintext
  20. * @var timestamp created_at
  21. * @var timestamp updated_at
  22. *
  23. * @author Paweł Złamaniec <pawel.zl@modulesgarden.com>
  24. */
  25. class EmailTemplate extends EloquentModel
  26. {
  27. /**
  28. * Table name
  29. *
  30. * @var string
  31. */
  32. protected $table = 'tblemailtemplates';
  33. protected $primaryKey = 'id';
  34. /**
  35. * Eloquent guarded parameters
  36. * @var array
  37. */
  38. protected $guarded = ['id'];
  39. /**
  40. * Eloquent fillable parameters
  41. * @var array
  42. */
  43. protected $fillable = ['type', 'name', 'subject', 'message', 'attachments', 'fromname', 'fromemail', 'disabled', 'custom', 'language', 'copyto', 'plaintext', 'created_at', 'updated_at'];
  44. /**
  45. * Indicates if the model should soft delete.
  46. *
  47. * @var bool
  48. */
  49. protected $softDelete = false;
  50. /**
  51. * Indicates if the model should be timestamped.
  52. *
  53. * @var bool
  54. */
  55. public $timestamps = false;
  56. public function __construct(array $attributes = [])
  57. {
  58. parent::__construct($attributes);
  59. }
  60. }