UserConfiguration.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * @property string $apiPasswordHash
  4. * @property array<string,mixed> $archiving
  5. * @property bool $auto_load_more
  6. * @property bool $auto_remove_article
  7. * @property bool $bottomline_date
  8. * @property bool $bottomline_favorite
  9. * @property bool $bottomline_link
  10. * @property bool $bottomline_read
  11. * @property bool $bottomline_sharing
  12. * @property bool $bottomline_tags
  13. * @property string $content_width
  14. * @property-read int $default_state
  15. * @property string $default_view
  16. * @property string|bool $display_categories
  17. * @property string $show_tags
  18. * @property int $show_tags_max
  19. * @property string $show_author_date
  20. * @property string $show_feed_name
  21. * @property bool $display_posts
  22. * @property string $email_validation_token
  23. * @property-read bool $enabled
  24. * @property string $feverKey
  25. * @property bool $hide_read_feeds
  26. * @property int $html5_notif_timeout
  27. * @property-read bool $is_admin
  28. * @property int|null $keep_history_default
  29. * @property string $language
  30. * @property string $timezone
  31. * @property bool $lazyload
  32. * @property string $mail_login
  33. * @property bool $mark_updated_article_unread
  34. * @property array<string,bool> $mark_when
  35. * @property int $max_posts_per_rss
  36. * @property-read array<string,int> $limits
  37. * @property int|null $old_entries
  38. * @property bool $onread_jump_next
  39. * @property string $passwordHash
  40. * @property int $posts_per_page
  41. * @property array<array<string,string>> $queries
  42. * @property bool $reading_confirm
  43. * @property int $since_hours_posts_per_rss
  44. * @property bool $show_fav_unread
  45. * @property bool $show_favicons
  46. * @property bool $icons_as_emojis
  47. * @property int $simplify_over_n_feeds
  48. * @property bool $show_nav_buttons
  49. * @property 'ASC'|'DESC' $sort_order
  50. * @property array<string,array<string>> $sharing
  51. * @property array<string,string> $shortcuts
  52. * @property bool $sides_close_article
  53. * @property bool $sticky_post
  54. * @property string $theme
  55. * @property string $darkMode
  56. * @property string $token
  57. * @property bool $topline_date
  58. * @property bool $topline_display_authors
  59. * @property bool $topline_favorite
  60. * @property bool $topline_link
  61. * @property bool $topline_read
  62. * @property bool $topline_summary
  63. * @property string $topline_website
  64. * @property string $topline_thumbnail
  65. * @property int $ttl_default
  66. * @property int $dynamic_opml_ttl_default
  67. * @property-read bool $unsafe_autologin_enabled
  68. * @property string $view_mode
  69. * @property array<string,mixed> $volatile
  70. */
  71. final class FreshRSS_UserConfiguration extends Minz_Configuration {
  72. public static function init(string $config_filename, ?string $default_filename = null,
  73. ?FreshRSS_ConfigurationSetter $configuration_setter = null): FreshRSS_UserConfiguration {
  74. parent::register('user', $config_filename, $default_filename, $configuration_setter);
  75. return parent::get('user');
  76. }
  77. }