Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/storage/AlmanacInterface.php
| <?php | <?php | ||||
| final class AlmanacInterface | final class AlmanacInterface | ||||
| extends AlmanacDAO | extends AlmanacDAO | ||||
| implements | implements | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
| PhabricatorExtendedPolicyInterface, | PhabricatorExtendedPolicyInterface, | ||||
| PhabricatorApplicationTransactionInterface { | PhabricatorApplicationTransactionInterface, | ||||
| PhabricatorConduitResultInterface { | |||||
| protected $devicePHID; | protected $devicePHID; | ||||
| protected $networkPHID; | protected $networkPHID; | ||||
| protected $address; | protected $address; | ||||
| protected $port; | protected $port; | ||||
| private $device = self::ATTACHABLE; | private $device = self::ATTACHABLE; | ||||
| private $network = self::ATTACHABLE; | private $network = self::ATTACHABLE; | ||||
| ▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
| } | } | ||||
| public function willRenderTimeline( | public function willRenderTimeline( | ||||
| PhabricatorApplicationTransactionView $timeline, | PhabricatorApplicationTransactionView $timeline, | ||||
| AphrontRequest $request) { | AphrontRequest $request) { | ||||
| return $timeline; | return $timeline; | ||||
| } | } | ||||
| /* -( PhabricatorConduitResultInterface )---------------------------------- */ | |||||
| public function getFieldSpecificationsForConduit() { | |||||
| return array( | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('devicePHID') | |||||
| ->setType('phid') | |||||
| ->setDescription(pht('The device the interface is on.')), | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('networkPHID') | |||||
| ->setType('phid') | |||||
| ->setDescription(pht('The network the interface is part of.')), | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('address') | |||||
| ->setType('string') | |||||
| ->setDescription(pht('The address of the interface.')), | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('port') | |||||
| ->setType('int') | |||||
| ->setDescription(pht('The port number of the interface.')), | |||||
| ); | |||||
| } | |||||
| public function getFieldValuesForConduit() { | |||||
| return array( | |||||
| 'devicePHID' => $this->getDevicePHID(), | |||||
| 'networkPHID' => $this->getNetworkPHID(), | |||||
| 'address' => (string)$this->getAddress(), | |||||
| 'port' => (int)$this->getPort(), | |||||
| ); | |||||
| } | |||||
| public function getConduitSearchAttachments() { | |||||
| return array(); | |||||
| } | |||||
| } | } | ||||