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
|
|
|
|
|
|
|
$inlines = id(new DifferentialInlineComment())->loadAllWhere(
|
|
|
|
'authorPHID = %s AND revisionID = %d AND commentID IS NULL',
|
|
|
|
$user->getPHID(),
|
|
|
|
$this->revisionID);
|
|
|
|
|
2012-07-23 20:01:28 +02:00
|
|
|
return $inlines;
|
2011-02-03 04:38:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|