Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorObjectQuery

final class PhabricatorObjectQuery
Phabricator Technical Documentation (PHIDs)

This class is not documented.

Methods

public function withPHIDs($phids)

This method is not documented.
Parameters
array$phids
Return
wild

public function withNames($names)

This method is not documented.
Parameters
array$names
Return
wild

public function withTypes($types)

This method is not documented.
Parameters
array$types
Return
wild

protected function loadPage()

This method is not documented.
Return
wild

public function getNamedResults()

This method is not documented.
Return
wild

private function loadObjectsByName($types, $names)

This method is not documented.
Parameters
array$types
array$names
Return
wild

private function loadObjectsByPHID($types, $phids)

This method is not documented.
Parameters
array$types
array$phids
Return
wild

protected function didFilterResults($filtered)

This method is not documented.
Parameters
array$filtered
Return
wild

protected function shouldDisablePolicyFiltering()

This query disables policy filtering if the only required capability is the view capability.

The view capability is always checked in the subqueries, so we do not need to re-filter results. For any other set of required capabilities, we do.

Return
wild

public function getQueryApplicationClass()

This method is not documented.
Return
wild

public static function loadInvalidPHIDsForViewer($viewer, $phids)

Select invalid or restricted PHIDs from a list.

PHIDs are invalid if their objects do not exist or can not be seen by the viewer. This method is generally used to validate that PHIDs affected by a transaction are valid.

Parameters
PhabricatorUser$viewerViewer.
list<phid>$phidsList of ostensibly valid PHIDs.
Return
list<phid>List of invalid or restricted PHIDs.