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