1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 19:32:40 +01:00
phorge-phorge/src/applications/differential/controller/DifferentialInlineCommentPreviewController.php

23 lines
489 B
PHP
Raw Normal View History

2011-02-03 04:38:43 +01:00
<?php
final class DifferentialInlineCommentPreviewController
extends PhabricatorInlineCommentPreviewController {
2011-02-03 04:38:43 +01:00
private $revisionID;
public function willProcessRequest(array $data) {
$this->revisionID = $data['id'];
}
protected function loadInlineComments() {
$user = $this->getRequest()->getUser();
2011-02-03 04:38:43 +01:00
$inlines = id(new DifferentialInlineCommentQuery())
->withDraftComments($user->getPHID(), $this->revisionID)
->execute();
2011-02-03 04:38:43 +01:00
return $inlines;
2011-02-03 04:38:43 +01:00
}
}