Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
tao_helpers_Environment | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
getFileUploadLimit | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getOperatingSystem | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | /* |
4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License |
6 | * as published by the Free Software Foundation; under version 2 |
7 | * of the License (non-upgradable). |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | * |
18 | * Copyright (c) 2008-2010 (original work) Deutsche Institut für Internationale Pädagogische Forschung |
19 | * (under the project TAO-TRANSFER); |
20 | * 2009-2012 (update and modification) Public Research Centre Henri Tudor |
21 | * (under the project TAO-SUSTAIN & TAO-DEV); |
22 | * |
23 | */ |
24 | |
25 | use oat\generis\Helper\SystemHelper; |
26 | |
27 | /** |
28 | * Utility class focusing on the server environment. |
29 | * |
30 | * @access public |
31 | * @author Joel Bout, <joel@taotesting.com> |
32 | * @package tao |
33 | * @deprecated |
34 | */ |
35 | class tao_helpers_Environment |
36 | { |
37 | /** |
38 | * Returns the maximum size for fileuploads in bytes. |
39 | * |
40 | * @author Joel Bout, <joel@taotesting.com> |
41 | * @deprecated use SystemHelper::getFileUploadLimit() |
42 | * @return int The upload file limit. |
43 | */ |
44 | public static function getFileUploadLimit() |
45 | { |
46 | return SystemHelper::getFileUploadLimit(); |
47 | } |
48 | |
49 | /** |
50 | * Returns the Operating System running TAO as a String. |
51 | * |
52 | * The returned value can be AFAIK: |
53 | * |
54 | * * 'WINNT' (Win XP, Windows NT, ...) |
55 | * * 'Linux' |
56 | * * 'FreeBSD' |
57 | * * 'Darwin' (Mac OS X) |
58 | * * 'CYGWIN_NT-5.1' |
59 | * * 'HP-UX' |
60 | * * 'IRIX64' |
61 | * * 'NetBSD' |
62 | * * 'OpenBSD' |
63 | * * 'SunOS' |
64 | * * 'Unix' |
65 | * * 'WIN32' |
66 | * * 'Windows' |
67 | * |
68 | * @author Joel Bout, <joel@taotesting.com> |
69 | * @deprecated use SystemHelper::getOperatingSystem |
70 | * @return string The operating system that runs the script. |
71 | */ |
72 | public static function getOperatingSystem() |
73 | { |
74 | return SystemHelper::getOperatingSystem(); |
75 | } |
76 | } |