Conditions | 6 |
Paths | 6 |
Total Lines | 24 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct($xmlData) |
||
23 | { |
||
24 | parent::__construct($xmlData); |
||
25 | foreach($xmlData->children() as $child) |
||
26 | { |
||
27 | switch($child->getName()) |
||
28 | { |
||
29 | case 'family': |
||
30 | switch($child->__toString()) |
||
31 | { |
||
32 | case 'UNX': |
||
33 | $this->Family = UNX; |
||
34 | break; |
||
35 | case 'MAC': |
||
36 | $this->Family = MAC; |
||
37 | break; |
||
38 | case 'WIN': |
||
39 | $this->Family = WIN; |
||
40 | break; |
||
41 | } |
||
42 | break; |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | |||
51 | define('MAC','mac'); |