|
@@ 222-227 (lines=6) @@
|
| 219 |
|
$hardware->addAttribute('Name', $this->_sys->getMachine()); |
| 220 |
|
} |
| 221 |
|
$pci = null; |
| 222 |
|
foreach (System::removeDupsAndCount($this->_sys->getPciDevices()) as $dev) { |
| 223 |
|
if ($pci === null) $pci = $hardware->addChild('PCI'); |
| 224 |
|
$tmp = $pci->addChild('Device'); |
| 225 |
|
$tmp->addAttribute('Name', $dev->getName()); |
| 226 |
|
$tmp->addAttribute('Count', $dev->getCount()); |
| 227 |
|
} |
| 228 |
|
$usb = null; |
| 229 |
|
foreach (System::removeDupsAndCount($this->_sys->getUsbDevices()) as $dev) { |
| 230 |
|
if ($usb === null) $usb = $hardware->addChild('USB'); |
|
@@ 229-234 (lines=6) @@
|
| 226 |
|
$tmp->addAttribute('Count', $dev->getCount()); |
| 227 |
|
} |
| 228 |
|
$usb = null; |
| 229 |
|
foreach (System::removeDupsAndCount($this->_sys->getUsbDevices()) as $dev) { |
| 230 |
|
if ($usb === null) $usb = $hardware->addChild('USB'); |
| 231 |
|
$tmp = $usb->addChild('Device'); |
| 232 |
|
$tmp->addAttribute('Name', $dev->getName()); |
| 233 |
|
$tmp->addAttribute('Count', $dev->getCount()); |
| 234 |
|
} |
| 235 |
|
$ide = null; |
| 236 |
|
foreach (System::removeDupsAndCount($this->_sys->getIdeDevices()) as $dev) { |
| 237 |
|
if ($ide === null) $ide = $hardware->addChild('IDE'); |
|
@@ 256-261 (lines=6) @@
|
| 253 |
|
} |
| 254 |
|
} |
| 255 |
|
$tb = null; |
| 256 |
|
foreach (System::removeDupsAndCount($this->_sys->getTbDevices()) as $dev) { |
| 257 |
|
if ($tb === null) $tb = $hardware->addChild('TB'); |
| 258 |
|
$tmp = $tb->addChild('Device'); |
| 259 |
|
$tmp->addAttribute('Name', $dev->getName()); |
| 260 |
|
$tmp->addAttribute('Count', $dev->getCount()); |
| 261 |
|
} |
| 262 |
|
$i2c = null; |
| 263 |
|
foreach (System::removeDupsAndCount($this->_sys->getI2cDevices()) as $dev) { |
| 264 |
|
if ($i2c === null) $i2c = $hardware->addChild('I2C'); |
|
@@ 263-268 (lines=6) @@
|
| 260 |
|
$tmp->addAttribute('Count', $dev->getCount()); |
| 261 |
|
} |
| 262 |
|
$i2c = null; |
| 263 |
|
foreach (System::removeDupsAndCount($this->_sys->getI2cDevices()) as $dev) { |
| 264 |
|
if ($i2c === null) $i2c = $hardware->addChild('I2C'); |
| 265 |
|
$tmp = $i2c->addChild('Device'); |
| 266 |
|
$tmp->addAttribute('Name', $dev->getName()); |
| 267 |
|
$tmp->addAttribute('Count', $dev->getCount()); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
$cpu = null; |
| 271 |
|
foreach ($this->_sys->getCpus() as $oneCpu) { |