Differential D17209 Diff 41403 src/applications/search/query/PhabricatorProfileMenuItemConfigurationQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/query/PhabricatorProfileMenuItemConfigurationQuery.php
| <?php | <?php | ||||
| final class PhabricatorProfileMenuItemConfigurationQuery | final class PhabricatorProfileMenuItemConfigurationQuery | ||||
| extends PhabricatorCursorPagedPolicyAwareQuery { | extends PhabricatorCursorPagedPolicyAwareQuery { | ||||
| private $ids; | private $ids; | ||||
| private $phids; | private $phids; | ||||
| private $profilePHIDs; | private $profilePHIDs; | ||||
| private $customPHIDs; | private $customPHIDs; | ||||
| private $menuType; | |||||
| public function withIDs(array $ids) { | public function withIDs(array $ids) { | ||||
| $this->ids = $ids; | $this->ids = $ids; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function withPHIDs(array $phids) { | public function withPHIDs(array $phids) { | ||||
| $this->phids = $phids; | $this->phids = $phids; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function withProfilePHIDs(array $phids) { | public function withProfilePHIDs(array $phids) { | ||||
| $this->profilePHIDs = $phids; | $this->profilePHIDs = $phids; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function withCustomPHIDs(array $phids) { | public function withCustomPHIDs(array $phids) { | ||||
| $this->customPHIDs = $phids; | $this->customPHIDs = $phids; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setMenuType($type) { | |||||
| $this->menuType = $type; | |||||
| return $this; | |||||
| } | |||||
| public function newResultObject() { | public function newResultObject() { | ||||
| return new PhabricatorProfileMenuItemConfiguration(); | return new PhabricatorProfileMenuItemConfiguration(); | ||||
| } | } | ||||
| protected function loadPage() { | protected function loadPage() { | ||||
| return $this->loadStandardPage($this->newResultObject()); | return $this->loadStandardPage($this->newResultObject()); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines | |||||