1 | <?php |
||
20 | class Config { |
||
21 | |||
22 | private $fileSystem; |
||
23 | private $autoPurgeMinimumInterval; // seconds, used to define how |
||
24 | // long deleted folders and feeds |
||
25 | // should still be kept for an |
||
26 | // undo actions |
||
27 | private $autoPurgeCount; // number of allowed unread articles per feed |
||
28 | private $maxRedirects; // seconds |
||
29 | private $feedFetcherTimeout; // seconds |
||
30 | private $useCronUpdates; // turn off updates run by owncloud cronjob |
||
31 | private $logger; |
||
32 | private $loggerParams; |
||
33 | private $maxSize; |
||
34 | private $exploreUrl; |
||
35 | |||
36 | public function __construct(Folder $fileSystem, |
||
50 | |||
51 | public function getAutoPurgeMinimumInterval() { |
||
58 | |||
59 | public function getAutoPurgeCount() { |
||
62 | |||
63 | |||
64 | public function getMaxRedirects() { |
||
67 | |||
68 | |||
69 | public function getFeedFetcherTimeout() { |
||
72 | |||
73 | |||
74 | public function getUseCronUpdates() { |
||
77 | |||
78 | |||
79 | public function getMaxSize() { |
||
82 | |||
83 | |||
84 | public function getExploreUrl() { |
||
85 | return $this->exploreUrl; |
||
86 | } |
||
87 | |||
88 | |||
89 | public function setAutoPurgeMinimumInterval($value) { |
||
90 | $this->autoPurgeMinimumInterval = $value; |
||
91 | } |
||
92 | |||
93 | |||
94 | public function setAutoPurgeCount($value) { |
||
95 | $this->autoPurgeCount = $value; |
||
96 | } |
||
97 | |||
98 | |||
99 | public function setMaxRedirects($value) { |
||
100 | $this->maxRedirects = $value; |
||
101 | } |
||
102 | |||
103 | |||
104 | public function setFeedFetcherTimeout($value) { |
||
105 | $this->feedFetcherTimeout = $value; |
||
106 | } |
||
107 | |||
108 | |||
109 | public function setUseCronUpdates($value) { |
||
110 | $this->useCronUpdates = $value; |
||
111 | } |
||
112 | |||
113 | public function setMaxSize($value) { |
||
114 | $this->maxSize = $value; |
||
115 | } |
||
116 | |||
117 | |||
118 | public function setExploreUrl($value) { |
||
119 | $this->exploreUrl = $value; |
||
120 | } |
||
121 | |||
122 | |||
123 | public function read($configPath, $createIfNotExists=false) { |
||
157 | |||
158 | |||
159 | public function write($configPath) { |
||
179 | |||
180 | |||
181 | } |
||
182 |