- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Return the alias this query uses to identify the primary table.
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- A @{class:PhabricatorQuery} which filters results according to visibility policies for the querying user. Broadly, this class allows you to implement a query that returns only objects the user is allowed to see.
- Class
- Determine if the viewer has permission to use this query's application. For queries which aren't part of an application, this method always returns true.
- Method
- If this query belongs to an application, return the application class name here. This will prevent the query from returning results if the viewer can not access the application.
- Method
- Allows a subclass to disable policy filtering. This method is dangerous. It should be used only if the query loads data which has already been filtered (for example, because it wraps some other query which uses normal policy filtering).
- Method
- Hook for applying final adjustments before results are returned. This is used by @{class:PhabricatorCursorPagedPolicyAwareQuery} to reverse results that are queried during reverse paging.
- Method
- Hook for removing filtered results from alternate result sets. This hook will be called with any objects which were returned by the query but filtered for policy reasons. The query should remove them from any cached or partial result sets.
- Method
- Hook for performing additional non-policy loading or filtering after an object has satisfied all policy checks. Generally, this means loading and attaching related data.
- Method
- Hook for applying a page filter prior to the privacy filter. This allows you to drop some items from the result set without creating problems with pagination or cursor updates. You can also load and attach data which is required to perform policy filtering.
- Method
- Update internal state so that the next call to @{method:loadPage} will return new results. Generally, you should adjust a cursor position based on the provided result page.
- Method
- Load a raw page of results. Generally, implementations should load objects from the database. They should attempt to return the number of results hinted by @{method:getRawResultLimit}.
- Method
- Hook invoked before query execution. Generally, implementations should reset any internal cursors.
- Method
- Get the number of results @{method:loadPage} should load. If the value is 0, @{method:loadPage} should load all available results.
- Method
- Get PHIDs which are currently in flight.
- Method
- Mark PHIDs as in flight.
- Method
- Retrieve objects from the query workspace. For more discussion about the workspace mechanism, see @{method:putObjectsInWorkspace}. This method searches both the current query's workspace and the workspaces of parent queries.
- Method
- Put a map of objects into the query workspace. Many queries perform subqueries, which can eventually end up loading the same objects more than once (often to perform policy checks).
- Method
- Return a map of all object PHIDs which were loaded in the query but filtered out by policy constraints. This allows a caller to distinguish between objects which do not exist (or, at least, were filtered at the content level) and objects which exist but aren't visible.
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Execute the query, loading all visible results.
- Method
- Execute the query, expecting a single result. This method simplifies loading objects for detail pages or edit views.
- Method
- Method
- Method
- Hook to configure whether this query should raise policy exceptions.
- Method
- Get the parent query. See @{method:setParentQuery} for discussion.
- Method
- Set the parent query of this query. This is useful for nested queries so that configuration like whether or not to raise policy exceptions is seamlessly passed along to child queries.
- Method
- Get the query's viewer.
- Method
- Set the viewer who is executing the query. Results will be filtered according to the viewer's capabilities. You must set a viewer to execute a policy query.
- Method
- Method
- Method
- Method
- Structural class representing a column ordering for a query.
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method