Test Setup Failed
Push — master ( 5548b8...63dc2d )
by Stefan
16:44
created

DeviceMobileconfigIos5plus::proxySettings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/*
3
 * *****************************************************************************
4
 * Contributions to this work were made on behalf of the GÉANT project, a 
5
 * project that has received funding from the European Union’s Framework 
6
 * Programme 7 under Grant Agreements No. 238875 (GN3) and No. 605243 (GN3plus),
7
 * Horizon 2020 research and innovation programme under Grant Agreements No. 
8
 * 691567 (GN4-1) and No. 731122 (GN4-2).
9
 * On behalf of the aforementioned projects, GEANT Association is the sole owner
10
 * of the copyright in all material which was developed by a member of the GÉANT
11
 * project. GÉANT Vereniging (Association) is registered with the Chamber of 
12
 * Commerce in Amsterdam with registration number 40535155 and operates in the 
13
 * UK as a branch of GÉANT Vereniging.
14
 * 
15
 * Registered office: Hoekenrode 3, 1102BR Amsterdam, The Netherlands. 
16
 * UK branch address: City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK
17
 *
18
 * License: see the web/copyright.inc.php file in the file structure or
19
 *          <base_url>/copyright.php after deploying the software
20
 */
21
22
/**
23
 * This file contains the installer for iOS devices and Apple 10.7 Lion
24
 *
25
 *
26
 * @author Stefan Winter <[email protected]>
27
 * @package Developer
28
 */
29
/**
30
 * 
31
 */
32
33
namespace devices\apple_mobileconfig;
34
35
/**
36
 * This is the main implementation class of the module
37
 *
38
 * The class should only define one public method: writeInstaller.
39
 *
40
 * All other methods and properties should be private. This example sets zipInstaller method to protected, so that it can be seen in the documentation.
41
 *
42
 * @package Developer
43
 */
44
class DeviceMobileconfigIos5plus extends MobileconfigSuperclass {
45
46
    /**
47
     * construct device and load specialities array
48
     */
49
    public function __construct() {
50
        parent::__construct();
51
        \core\common\Entity::intoThePotatoes();
52
        $this->specialities['media:force_proxy'] = _("This device does not support forcing setting an HTTPS proxy.");
53
        \core\common\Entity::outOfThePotatoes();
54
    }
55
    
56
    /**
57
     * We don't suppory any proxy settings, just override the parent class empty
58
     * 
59
     * @return string
60
     */
61
    protected function proxySettings() {
62
        // iOS 5 and 6 do not support the Proxy auto-detect block properly, so 
63
        // override the function to do nothing.
64
        // it might support the force_proxy_ settings, but there are so few
65
        // specimen of that iOS version remaining that it's not worth the effort
66
        // to write the code
67
        return "";
68
    }
69
70
}
71