Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/storage/AlmanacBinding.php
| Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | return array( | ||||
| id(new PhabricatorConduitSearchFieldSpecification()) | id(new PhabricatorConduitSearchFieldSpecification()) | ||||
| ->setKey('devicePHID') | ->setKey('devicePHID') | ||||
| ->setType('phid') | ->setType('phid') | ||||
| ->setDescription(pht('The device the service is bound to.')), | ->setDescription(pht('The device the service is bound to.')), | ||||
| id(new PhabricatorConduitSearchFieldSpecification()) | id(new PhabricatorConduitSearchFieldSpecification()) | ||||
| ->setKey('interfacePHID') | ->setKey('interfacePHID') | ||||
| ->setType('phid') | ->setType('phid') | ||||
| ->setDescription(pht('The interface the service is bound to.')), | ->setDescription(pht('The interface the service is bound to.')), | ||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('disabled') | |||||
| ->setType('bool') | |||||
| ->setDescription(pht('Interface status.')), | |||||
| ); | ); | ||||
| } | } | ||||
| public function getFieldValuesForConduit() { | public function getFieldValuesForConduit() { | ||||
| return array( | return array( | ||||
| 'servicePHID' => $this->getServicePHID(), | 'servicePHID' => $this->getServicePHID(), | ||||
| 'devicePHID' => $this->getDevicePHID(), | 'devicePHID' => $this->getDevicePHID(), | ||||
| 'interfacePHID' => $this->getInterfacePHID(), | 'interfacePHID' => $this->getInterfacePHID(), | ||||
| 'disabled' => (bool)$this->getIsDisabled(), | |||||
| ); | ); | ||||
| } | } | ||||
| public function getConduitSearchAttachments() { | public function getConduitSearchAttachments() { | ||||
| return array(); | return array( | ||||
| id(new AlmanacPropertiesSearchEngineAttachment()) | |||||
| ->setAttachmentKey('properties'), | |||||
| ); | |||||
| } | } | ||||
| } | } | ||||