Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/field/PhabricatorSearchSubscribersField.php
| <?php | <?php | ||||
| final class PhabricatorSearchSubscribersField | final class PhabricatorSearchSubscribersField | ||||
| extends PhabricatorSearchTokenizerField { | extends PhabricatorSearchTokenizerField { | ||||
| protected function getDefaultValue() { | protected function getDefaultValue() { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| protected function getValueFromRequest(AphrontRequest $request, $key) { | protected function getValueFromRequest(AphrontRequest $request, $key) { | ||||
| $allow_types = array( | $allow_types = array( | ||||
| PhabricatorProjectProjectPHIDType::TYPECONST, | PhabricatorProjectProjectPHIDType::TYPECONST, | ||||
| PhabricatorOwnersPackagePHIDType::TYPECONST, | |||||
| ); | ); | ||||
| return $this->getUsersFromRequest($request, $key, $allow_types); | return $this->getUsersFromRequest($request, $key, $allow_types); | ||||
| } | } | ||||
| protected function newDatasource() { | protected function newDatasource() { | ||||
| return new PhabricatorMetaMTAMailableFunctionDatasource(); | return new PhabricatorMetaMTAMailableFunctionDatasource(); | ||||
| } | } | ||||
| protected function newConduitParameterType() { | protected function newConduitParameterType() { | ||||
| // TODO: Ideally, this should eventually be a "Subscribers" type which | // TODO: Ideally, this should eventually be a "Subscribers" type which | ||||
| // accepts projects as well. | // accepts projects as well. | ||||
| return new ConduitUserListParameterType(); | return new ConduitUserListParameterType(); | ||||
| } | } | ||||
| } | } | ||||