Differential D21628 Diff 51485 src/applications/almanac/engineextension/AlmanacSearchEngineAttachment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/engineextension/AlmanacSearchEngineAttachment.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | abstract class AlmanacSearchEngineAttachment | ||||
} | } | ||||
protected function getAlmanacDeviceDictionary(AlmanacDevice $device) { | protected function getAlmanacDeviceDictionary(AlmanacDevice $device) { | ||||
return array( | return array( | ||||
'id' => (int)$device->getID(), | 'id' => (int)$device->getID(), | ||||
'phid' => $device->getPHID(), | 'phid' => $device->getPHID(), | ||||
'name' => $device->getName(), | 'name' => $device->getName(), | ||||
'properties' => $this->getAlmanacPropertyList($device), | 'properties' => $this->getAlmanacPropertyList($device), | ||||
'status' => $device->getStatus(), | |||||
'disabled' => $device->isDisabled(), | |||||
); | ); | ||||
} | } | ||||
protected function getAlmanacNetworkDictionary(AlmanacNetwork $network) { | protected function getAlmanacNetworkDictionary(AlmanacNetwork $network) { | ||||
return array( | return array( | ||||
'id' => (int)$network->getID(), | 'id' => (int)$network->getID(), | ||||
'phid' => $network->getPHID(), | 'phid' => $network->getPHID(), | ||||
'name' => $network->getName(), | 'name' => $network->getName(), | ||||
); | ); | ||||
} | } | ||||
} | } |