Passed
Push — master ( ecb0dd...7e25d9 )
by Stefan
03:26
created

Device_mobileconfig_ios_56   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A proxySettings() 0 7 1
1
<?php
2
3
/*
4
 * ******************************************************************************
5
 * Copyright 2011-2017 DANTE Ltd. and GÉANT on behalf of the GN3, GN3+, GN4-1 
6
 * and GN4-2 consortia
7
 *
8
 * License: see the web/copyright.php file in the file structure
9
 * ******************************************************************************
10
 */
11
12
/**
13
 * This file contains the installer for iOS devices and Apple 10.7 Lion
14
 *
15
 *
16
 * @author Stefan Winter <[email protected]>
17
 * @package Developer
18
 */
19
/**
20
 * 
21
 */
22
23
namespace devices\apple_mobileconfig;
24
25
/**
26
 * This is the main implementation class of the module
27
 *
28
 * The class should only define one public method: writeInstaller.
29
 *
30
 * All other methods and properties should be private. This example sets zipInstaller method to protected, so that it can be seen in the documentation.
31
 *
32
 * @package Developer
33
 */
34
class Device_mobileconfig_ios_56 extends mobileconfigSuperclass {
35
36
    public function __construct() {
37
        parent::__construct();
38
        $this->specialities['media:force_proxy_http'] = _("This device does not support forcing setting an HTTP proxy.");
39
        $this->specialities['media:force_proxy_https'] = _("This device does not support forcing setting an HTTPS proxy.");
40
    }
41
    protected function proxySettings() {
42
        // iOS 5 and 6 do not support the Proxy auto-detect block properly, so 
43
        // override the function to do nothing.
44
        // it might support the force_proxy_ settings, but there are so few
45
        // specimen of that iOS version remaining that it's not worth the effort
46
        // to write the code
47
        return "";
48
    }
49
50
}
51