Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php
| Show First 20 Lines • Show All 410 Lines • ▼ Show 20 Lines | /* -( Query Workspace )---------------------------------------------------- */ | ||||
| /** | /** | ||||
| * Retrieve objects from the query workspace. For more discussion about the | * Retrieve objects from the query workspace. For more discussion about the | ||||
| * workspace mechanism, see @{method:putObjectsInWorkspace}. This method | * workspace mechanism, see @{method:putObjectsInWorkspace}. This method | ||||
| * searches both the current query's workspace and the workspaces of parent | * searches both the current query's workspace and the workspaces of parent | ||||
| * queries. | * queries. | ||||
| * | * | ||||
| * @param list<phid> List of PHIDs to retreive. | * @param list<phid> List of PHIDs to retrieve. | ||||
| * @return this | * @return this | ||||
| * @task workspace | * @task workspace | ||||
| */ | */ | ||||
| public function getObjectsFromWorkspace(array $phids) { | public function getObjectsFromWorkspace(array $phids) { | ||||
| $viewer_phid = $this->getViewer()->getPHID(); | $viewer_phid = $this->getViewer()->getPHID(); | ||||
| $results = array(); | $results = array(); | ||||
| foreach ($phids as $key => $phid) { | foreach ($phids as $key => $phid) { | ||||
| ▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines | |||||