[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/diviner/query/ -> DivinerAtomQuery.php (summary)

(no description)

File Size: 447 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 21 functions

  withIDs()
  withPHIDs()
  withBookPHIDs()
  withTypes()
  withNames()
  withContexts()
  withIndexes()
  withNodeHashes()
  withTitles()
  withNameContains()
  needAtoms()
  needChildren()
  withIncludeGhosts()
  needExtends()
  withIncludeUndocumentable()
  loadPage()
  willFilterPage()
  buildWhereClause()
  getAllChildHashes()
  attachAllChildren()
  getQueryApplicationClass()

Functions
Functions that are not part of a class:

withIDs(array $ids)   X-Ref
No description

withPHIDs(array $phids)   X-Ref
No description

withBookPHIDs(array $phids)   X-Ref
No description

withTypes(array $types)   X-Ref
No description

withNames(array $names)   X-Ref
No description

withContexts(array $contexts)   X-Ref
No description

withIndexes(array $indexes)   X-Ref
No description

withNodeHashes(array $hashes)   X-Ref
No description

withTitles($titles)   X-Ref
No description

withNameContains($text)   X-Ref
No description

needAtoms($need)   X-Ref
No description

needChildren($need)   X-Ref
No description

withIncludeGhosts($include)   X-Ref
Include "ghosts", which are symbols which used to exist but do not exist
currently (for example, a function which existed in an older version of
the codebase but was deleted).

These symbols had PHIDs assigned to them, and may have other sorts of
metadata that we don't want to lose (like comments or flags), so we don't
delete them outright. They might also come back in the future: the change
which deleted the symbol might be reverted, or the documentation might
have been generated incorrectly by accident. In these cases, we can
restore the original data.

However, most callers are not interested in these symbols, so they are
excluded by default. You can use this method to include them in results.

param: bool  True to include ghosts.
return: this

needExtends($need)   X-Ref
No description

withIncludeUndocumentable($include)   X-Ref
No description

loadPage()   X-Ref
No description

willFilterPage(array $atoms)   X-Ref
No description

buildWhereClause(AphrontDatabaseConnection $conn_r)   X-Ref
No description

getAllChildHashes(array $symbols, $recurse_up)   X-Ref
Walk a list of atoms and collect all the node hashes of the atoms'
children. When recursing, also walk up the tree and collect children of
atoms they extend.

param: list<DivinerLiveSymbol> List of symbols to collect child hashes of.
param: bool                    True to collect children of extended atoms,
return: map<string, string>    Hashes of atoms' children.

attachAllChildren(array $symbols,array $children,$recurse_up)   X-Ref
Attach child atoms to existing atoms. In recursive mode, also attach child
atoms to atoms that these atoms extend.

param: list<DivinerLiveSymbol> List of symbols to attach children to.
param: map<string, DivinerLiveSymbol> Map of symbols, keyed by node hash.
param: bool True to attach children to extended atoms, as well.
return: void

getQueryApplicationClass()   X-Ref
No description



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1