1 | <?php |
||
10 | class Session extends AbstractModel |
||
11 | { |
||
12 | /** |
||
13 | * @var integer |
||
14 | */ |
||
15 | protected $altSpeedDown; |
||
16 | |||
17 | /** |
||
18 | * @var boolean |
||
19 | */ |
||
20 | protected $altSpeedEnabled; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $downloadDir; |
||
26 | |||
27 | /** |
||
28 | * @var boolean |
||
29 | */ |
||
30 | protected $downloadQueueEnabled; |
||
31 | |||
32 | /** |
||
33 | * @var integer |
||
34 | */ |
||
35 | protected $downloadQueueSize; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $incompleteDir; |
||
41 | |||
42 | /** |
||
43 | * @var boolean |
||
44 | */ |
||
45 | protected $incompleteDirEnabled; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | protected $torrentDoneScript; |
||
51 | |||
52 | /** |
||
53 | * @var boolean |
||
54 | */ |
||
55 | protected $torrentDoneScriptEnabled; |
||
56 | |||
57 | /** |
||
58 | * @var double |
||
59 | */ |
||
60 | protected $seedRatioLimit; |
||
61 | |||
62 | /** |
||
63 | * @var boolean |
||
64 | */ |
||
65 | protected $seedRatioLimited; |
||
66 | |||
67 | /** |
||
68 | * @var integer |
||
69 | */ |
||
70 | protected $seedQueueSize; |
||
71 | |||
72 | /** |
||
73 | * @var boolean |
||
74 | */ |
||
75 | protected $seedQueueEnabled; |
||
76 | |||
77 | /** |
||
78 | * @var integer |
||
79 | */ |
||
80 | protected $downloadSpeedLimit; |
||
81 | |||
82 | /** |
||
83 | * @var boolean |
||
84 | */ |
||
85 | protected $downloadSpeedLimitEnabled; |
||
86 | |||
87 | /** |
||
88 | * @var integer |
||
89 | */ |
||
90 | protected $uploadSpeedLimit; |
||
91 | |||
92 | /** |
||
93 | * @var boolean |
||
94 | */ |
||
95 | protected $uploadSpeedLimitEnabled; |
||
96 | |||
97 | /** |
||
98 | * @param integer $speed |
||
99 | */ |
||
100 | public function setAltSpeedDown($speed) |
||
104 | |||
105 | /** |
||
106 | * @return integer |
||
107 | */ |
||
108 | public function getAltSpeedDown() |
||
112 | |||
113 | /** |
||
114 | * @param boolean $enabled |
||
115 | */ |
||
116 | public function setAltSpeedEnabled($enabled) |
||
120 | |||
121 | /** |
||
122 | * @return boolean |
||
123 | */ |
||
124 | public function isAltSpeedEnabled() |
||
128 | |||
129 | /** |
||
130 | * @param string $downloadDir |
||
131 | */ |
||
132 | public function setDownloadDir($downloadDir) |
||
136 | |||
137 | /** |
||
138 | * @return string |
||
139 | */ |
||
140 | public function getDownloadDir() |
||
144 | |||
145 | /** |
||
146 | * @param boolean $enabled |
||
147 | */ |
||
148 | public function setDownloadQueueEnabled($enabled) |
||
152 | |||
153 | /** |
||
154 | * @return boolean |
||
155 | */ |
||
156 | public function isDownloadQueueEnabled() |
||
160 | |||
161 | /** |
||
162 | * @param integer $size |
||
163 | */ |
||
164 | public function setDownloadQueueSize($size) |
||
168 | |||
169 | /** |
||
170 | * @return integer |
||
171 | */ |
||
172 | public function getDownloadQueueSize() |
||
176 | |||
177 | /** |
||
178 | * @param string $directory |
||
179 | */ |
||
180 | public function setIncompleteDir($directory) |
||
184 | |||
185 | /** |
||
186 | * @return string |
||
187 | */ |
||
188 | public function getIncompleteDir() |
||
192 | |||
193 | /** |
||
194 | * @param boolean $enabled |
||
195 | */ |
||
196 | public function setIncompleteDirEnabled($enabled) |
||
200 | |||
201 | /** |
||
202 | * @return boolean |
||
203 | */ |
||
204 | public function isIncompleteDirEnabled() |
||
208 | |||
209 | /** |
||
210 | * @param string $filename |
||
211 | */ |
||
212 | public function setTorrentDoneScript($filename) |
||
216 | |||
217 | /** |
||
218 | * @return string |
||
219 | */ |
||
220 | public function getTorrentDoneScript() |
||
224 | |||
225 | /** |
||
226 | * @param boolean $enabled |
||
227 | */ |
||
228 | public function setTorrentDoneScriptEnabled($enabled) |
||
232 | |||
233 | /** |
||
234 | * @return boolean |
||
235 | */ |
||
236 | public function isTorrentDoneScriptEnabled() |
||
240 | |||
241 | /** |
||
242 | * @param double $limit |
||
243 | */ |
||
244 | public function setSeedRatioLimit($limit) |
||
248 | |||
249 | /** |
||
250 | * @return double |
||
251 | */ |
||
252 | public function getSeedRatioLimit() |
||
256 | |||
257 | /** |
||
258 | * @param boolean $limited |
||
259 | */ |
||
260 | public function setSeedRatioLimited($limited) |
||
264 | |||
265 | /** |
||
266 | * @return boolean |
||
267 | */ |
||
268 | public function isSeedRatioLimited() |
||
272 | |||
273 | /** |
||
274 | * @param integer $size |
||
275 | */ |
||
276 | public function setSeedQueueSize($size) |
||
280 | |||
281 | /** |
||
282 | * @return integer |
||
283 | */ |
||
284 | public function getSeedQueueSize() |
||
288 | |||
289 | /** |
||
290 | * @param boolean $enabled |
||
291 | */ |
||
292 | public function setSeedQueueEnabled($enabled) |
||
296 | |||
297 | /** |
||
298 | * @return boolean |
||
299 | */ |
||
300 | public function isSeedQueueEnabled() |
||
304 | |||
305 | /** |
||
306 | * @param integer $limit |
||
307 | */ |
||
308 | public function setDownloadSpeedLimit($limit) |
||
312 | |||
313 | /** |
||
314 | * @return integer |
||
315 | */ |
||
316 | public function getDownloadSpeedLimit() |
||
320 | |||
321 | /** |
||
322 | * @param boolean $enabled |
||
323 | */ |
||
324 | public function setDownloadSpeedLimitEnabled($enabled) |
||
328 | |||
329 | /** |
||
330 | * @return boolean |
||
331 | */ |
||
332 | public function isDownloadSpeedLimitEnabled() |
||
336 | |||
337 | /** |
||
338 | * @param integer $limit |
||
339 | */ |
||
340 | public function setUploadSpeedLimit($limit) |
||
344 | |||
345 | /** |
||
346 | * @return integer |
||
347 | */ |
||
348 | public function getUploadSpeedLimit() |
||
352 | |||
353 | /** |
||
354 | * @param boolean $enabled |
||
355 | */ |
||
356 | public function setUploadSpeedLimitEnabled($enabled) |
||
360 | |||
361 | /** |
||
362 | * @return boolean |
||
363 | */ |
||
364 | public function isUploadSpeedLimitEnabled() |
||
368 | |||
369 | /** |
||
370 | * {@inheritDoc} |
||
371 | */ |
||
372 | public static function getMapping() |
||
394 | |||
395 | public function save() |
||
410 | } |
||
411 |