|
@@ 236-244 (lines=9) @@
|
| 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'); |
| 238 |
|
$tmp = $ide->addChild('Device'); |
| 239 |
|
$tmp->addAttribute('Name', $dev->getName()); |
| 240 |
|
$tmp->addAttribute('Count', $dev->getCount()); |
| 241 |
|
if ($dev->getCapacity() !== null) { |
| 242 |
|
$tmp->addAttribute('Capacity', $dev->getCapacity()); |
| 243 |
|
} |
| 244 |
|
} |
| 245 |
|
$scsi = null; |
| 246 |
|
foreach (System::removeDupsAndCount($this->_sys->getScsiDevices()) as $dev) { |
| 247 |
|
if ($scsi === null) $scsi = $hardware->addChild('SCSI'); |
|
@@ 246-254 (lines=9) @@
|
| 243 |
|
} |
| 244 |
|
} |
| 245 |
|
$scsi = null; |
| 246 |
|
foreach (System::removeDupsAndCount($this->_sys->getScsiDevices()) as $dev) { |
| 247 |
|
if ($scsi === null) $scsi = $hardware->addChild('SCSI'); |
| 248 |
|
$tmp = $scsi->addChild('Device'); |
| 249 |
|
$tmp->addAttribute('Name', $dev->getName()); |
| 250 |
|
$tmp->addAttribute('Count', $dev->getCount()); |
| 251 |
|
if ($dev->getCapacity() !== null) { |
| 252 |
|
$tmp->addAttribute('Capacity', $dev->getCapacity()); |
| 253 |
|
} |
| 254 |
|
} |
| 255 |
|
$tb = null; |
| 256 |
|
foreach (System::removeDupsAndCount($this->_sys->getTbDevices()) as $dev) { |
| 257 |
|
if ($tb === null) $tb = $hardware->addChild('TB'); |