[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/diffusion/query/filecontent/ -> DiffusionFileContentQuery.php (summary)

NOTE: this class should only be used where local access to the repository is guaranteed and NOT from within the Diffusion application. Diffusion should use Conduit method 'diffusion.filecontentquery' to get this sort of data.

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

Defines 11 functions

  newFromDiffusionRequest()
  loadFileContentFromFuture()
  executeQuery()
  loadFileContent()
  getRawData()
  getBlameData()
  setNeedsBlame()
  getNeedsBlame()
  setViewer()
  getViewer()
  processRevList()

Functions
Functions that are not part of a class:

newFromDiffusionRequest(DiffusionRequest $request)   X-Ref
No description

loadFileContentFromFuture(Future $future)   X-Ref
No description

executeQuery()   X-Ref
No description

loadFileContent()   X-Ref
No description

getRawData()   X-Ref
No description

getBlameData()   X-Ref
Pretty hairy function. If getNeedsBlame is false, this returns

($text_list, array(), array())

Where $text_list is the raw file content with trailing new lines stripped.

If getNeedsBlame is true, this returns

($text_list, $line_rev_dict, $blame_dict)

Where $text_list is just the lines of code -- the raw file content will
contain lots of blame data, $line_rev_dict is a dictionary of line number
=> revision id, and $blame_dict is another complicated data structure.
In detail, $blame_dict contains [revision id][author] keys, as well
as [commit id][authorPhid] and [commit id][epoch] keys.

return: ($text_list, $line_rev_dict, $blame_dict)

setNeedsBlame($needs_blame)   X-Ref
No description

getNeedsBlame()   X-Ref
No description

setViewer(PhabricatorUser $user)   X-Ref
No description

getViewer()   X-Ref
No description

processRevList(array $rev_list)   X-Ref
No description



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