Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/storage/AlmanacNamespace.php
| <?php | <?php | ||||
| final class AlmanacNamespace | final class AlmanacNamespace | ||||
| extends AlmanacDAO | extends AlmanacDAO | ||||
| implements | implements | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
| PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
| AlmanacPropertyInterface, | AlmanacPropertyInterface, | ||||
| PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
| PhabricatorNgramsInterface { | PhabricatorNgramsInterface, | ||||
| PhabricatorConduitResultInterface { | |||||
| protected $name; | protected $name; | ||||
| protected $nameIndex; | protected $nameIndex; | ||||
| protected $mailKey; | protected $mailKey; | ||||
| protected $viewPolicy; | protected $viewPolicy; | ||||
| protected $editPolicy; | protected $editPolicy; | ||||
| private $almanacProperties = self::ATTACHABLE; | private $almanacProperties = self::ATTACHABLE; | ||||
| ▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | /* -( PhabricatorNgramsInterface )----------------------------------------- */ | ||||
| public function newNgrams() { | public function newNgrams() { | ||||
| return array( | return array( | ||||
| id(new AlmanacNamespaceNameNgrams()) | id(new AlmanacNamespaceNameNgrams()) | ||||
| ->setValue($this->getName()), | ->setValue($this->getName()), | ||||
| ); | ); | ||||
| } | } | ||||
| /* -( PhabricatorConduitResultInterface )---------------------------------- */ | |||||
| public function getFieldSpecificationsForConduit() { | |||||
| return array( | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('name') | |||||
| ->setType('string') | |||||
| ->setDescription(pht('The name of the namespace.')), | |||||
| ); | |||||
| } | |||||
| public function getFieldValuesForConduit() { | |||||
| return array( | |||||
| 'name' => $this->getName(), | |||||
| ); | |||||
| } | |||||
| public function getConduitSearchAttachments() { | |||||
| return array(); | |||||
| } | |||||
| } | } | ||||