2011-02-02 19:38:43 -08:00
|
|
|
<?php
|
|
|
|
|
2012-03-09 15:46:25 -08:00
|
|
|
final class DifferentialInlineCommentPreviewController
|
2012-07-23 11:01:28 -07:00
|
|
|
extends PhabricatorInlineCommentPreviewController {
|
2011-02-02 19:38:43 -08:00
|
|
|
|
|
|
|
private $revisionID;
|
|
|
|
|
|
|
|
public function willProcessRequest(array $data) {
|
|
|
|
$this->revisionID = $data['id'];
|
|
|
|
}
|
|
|
|
|
2012-07-23 11:01:28 -07:00
|
|
|
protected function loadInlineComments() {
|
|
|
|
$user = $this->getRequest()->getUser();
|
2011-02-02 19:38:43 -08:00
|
|
|
|
2013-06-21 12:54:56 -07:00
|
|
|
$inlines = id(new DifferentialInlineCommentQuery())
|
|
|
|
->withDraftComments($user->getPHID(), $this->revisionID)
|
|
|
|
->execute();
|
2011-02-02 19:38:43 -08:00
|
|
|
|
2012-07-23 11:01:28 -07:00
|
|
|
return $inlines;
|
2011-02-02 19:38:43 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|