Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProject.php
| <?php | <?php | ||||
| final class PhabricatorProject extends PhabricatorProjectDAO | final class PhabricatorProject extends PhabricatorProjectDAO | ||||
| implements | implements | ||||
| PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
| PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorExtendedPolicyInterface, | PhabricatorExtendedPolicyInterface, | ||||
| PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
| PhabricatorCustomFieldInterface, | PhabricatorCustomFieldInterface, | ||||
| PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
| PhabricatorFulltextInterface { | PhabricatorFulltextInterface, | ||||
| PhabricatorConduitResultInterface { | |||||
| protected $name; | protected $name; | ||||
| protected $status = PhabricatorProjectStatus::STATUS_ACTIVE; | protected $status = PhabricatorProjectStatus::STATUS_ACTIVE; | ||||
| protected $authorPHID; | protected $authorPHID; | ||||
| protected $primarySlug; | protected $primarySlug; | ||||
| protected $profileImagePHID; | protected $profileImagePHID; | ||||
| protected $icon; | protected $icon; | ||||
| protected $color; | protected $color; | ||||
| ▲ Show 20 Lines • Show All 499 Lines • ▼ Show 20 Lines | |||||
| /* -( PhabricatorFulltextInterface )--------------------------------------- */ | /* -( PhabricatorFulltextInterface )--------------------------------------- */ | ||||
| public function newFulltextEngine() { | public function newFulltextEngine() { | ||||
| return new PhabricatorProjectFulltextEngine(); | return new PhabricatorProjectFulltextEngine(); | ||||
| } | } | ||||
| /* -( PhabricatorConduitResultInterface )---------------------------------- */ | |||||
| public function getFieldSpecificationsForConduit() { | |||||
| return array( | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('name') | |||||
| ->setType('string') | |||||
| ->setDescription(pht('The name of the project.')), | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('slug') | |||||
| ->setType('string') | |||||
| ->setDescription(pht('Primary slug/hashtag.')), | |||||
| ); | |||||
| } | |||||
| public function getFieldValuesForConduit() { | |||||
| return array( | |||||
| 'name' => $this->getName(), | |||||
| 'slug' => $this->getPrimarySlug(), | |||||
| ); | |||||
| } | |||||
| public function getConduitSearchAttachments() { | |||||
| return array(); | |||||
| } | |||||
| } | } | ||||