| [ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
Flexible query API for Differential revisions. Example: // Load open revisions $revisions = id(new DifferentialRevisionQuery()) ->withStatus(DifferentialRevisionQuery::STATUS_OPEN) ->execute();
| File Size: | 1169 lines (33 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| withPath($repository_id, $path_id) X-Ref |
| Filter results to revisions which affect a Diffusion path ID in a given repository. You can call this multiple times to select revisions for several paths. param: int Diffusion repository ID. param: int Diffusion path ID. return: this |
| withAuthors(array $author_phids) X-Ref |
| Filter results to revisions authored by one of the given PHIDs. Calling this function will clear anything set by previous calls to @{method:withAuthors}. param: array List of PHIDs of authors return: this |
| withDraftRepliesByAuthors(array $author_phids) X-Ref |
| Filter results to revisions with comments authored by the given PHIDs. param: array List of PHIDs of authors return: this |
| withCCs(array $cc_phids) X-Ref |
| Filter results to revisions which CC one of the listed people. Calling this function will clear anything set by previous calls to @{method:withCCs}. param: array List of PHIDs of subscribers. return: this |
| withReviewers(array $reviewer_phids) X-Ref |
| Filter results to revisions that have one of the provided PHIDs as reviewers. Calling this function will clear anything set by previous calls to @{method:withReviewers}. param: array List of PHIDs of reviewers return: this |
| withCommitHashes(array $commit_hashes) X-Ref |
| Filter results to revisions that have one of the provided commit hashes. Calling this function will clear anything set by previous calls to @{method:withCommitHashes}. param: array List of pairs <Class return: this |
| withStatus($status_constant) X-Ref |
| Filter results to revisions with a given status. Provide a class constant, such as `DifferentialRevisionQuery::STATUS_OPEN`. param: const Class STATUS constant, like STATUS_OPEN. return: this |
| withBranches(array $branches) X-Ref |
| Filter results to revisions on given branches. param: list List of branch names. return: this |
| withIDs(array $ids) X-Ref |
| Filter results to only return revisions whose ids are in the given set. param: array List of revision ids return: this |
| withPHIDs(array $phids) X-Ref |
| Filter results to only return revisions whose PHIDs are in the given set. param: array List of revision PHIDs return: this |
| withResponsibleUsers(array $responsible_phids) X-Ref |
| Given a set of users, filter results to return only revisions they are responsible for (i.e., they are either authors or reviewers). param: array List of user PHIDs. return: this |
| withArcanistProjectPHIDs(array $arc_project_phids) X-Ref |
| Filter results to only return revisions with a given set of arcanist projects. param: array List of project PHIDs. return: this |
| withRepositoryPHIDs(array $repository_phids) X-Ref |
| No description |
| setOrder($order_constant) X-Ref |
| Set result ordering. Provide a class constant, such as `DifferentialRevisionQuery::ORDER_CREATED`. |
| needRelationships($need_relationships) X-Ref |
| Set whether or not the query will load and attach relationships. param: bool True to load and attach relationships. return: this |
| needActiveDiffs($need_active_diffs) X-Ref |
| Set whether or not the query should load the active diff for each revision. param: bool True to load and attach diffs. return: this |
| needCommitPHIDs($need_commit_phids) X-Ref |
| Set whether or not the query should load the associated commit PHIDs for each revision. param: bool True to load and attach diffs. return: this |
| needDiffIDs($need_diff_ids) X-Ref |
| Set whether or not the query should load associated diff IDs for each revision. param: bool True to load and attach diff IDs. return: this |
| needHashes($need_hashes) X-Ref |
| Set whether or not the query should load associated commit hashes for each revision. param: bool True to load and attach commit hashes. return: this |
| needReviewerStatus($need_reviewer_status) X-Ref |
| Set whether or not the query should load associated reviewer status. param: bool True to load and attach reviewers. return: this |
| needReviewerAuthority($need_reviewer_authority) X-Ref |
| Request information about the viewer's authority to act on behalf of each reviewer. In particular, they have authority to act on behalf of projects they are a member of. param: bool True to load and attach authority. return: this |
| needFlags($need_flags) X-Ref |
| No description |
| needDrafts($need_drafts) X-Ref |
| No description |
| loadPage() X-Ref |
| Execute the query as configured, returning matching @{class:DifferentialRevision} objects. return: list List of matching DifferentialRevision objects. |
| willFilterPage(array $revisions) X-Ref |
| No description |
| didFilterPage(array $revisions) X-Ref |
| No description |
| loadData() X-Ref |
| No description |
| buildSelectStatement(AphrontDatabaseConnection $conn_r) X-Ref |
| No description |
| buildJoinsClause($conn_r) X-Ref |
| buildWhereClause($conn_r) X-Ref |
| buildGroupByClause($conn_r) X-Ref |
| loadCursorObject($id) X-Ref |
| No description |
| buildPagingClause(AphrontDatabaseConnection $conn_r) X-Ref |
| No description |
| getPagingColumn() X-Ref |
| No description |
| loadRelationships($conn_r, array $revisions) X-Ref |
| No description |
| loadCommitPHIDs($conn_r, array $revisions) X-Ref |
| No description |
| loadDiffIDs($conn_r, array $revisions) X-Ref |
| No description |
| loadActiveDiffs($conn_r, array $revisions) X-Ref |
| No description |
| loadHashes(AphrontDatabaseConnection $conn_r,array $revisions) X-Ref |
| No description |
| loadReviewers(AphrontDatabaseConnection $conn_r,array $revisions) X-Ref |
| No description |
| splitResponsible(array $revisions, array $user_phids) X-Ref |
| No description |
| loadReviewerAuthority(array $revisions,array $edges,$allow_self) X-Ref |
| No description |
| getQueryApplicationClass() X-Ref |
| No description |
| Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |