Page MenuHomePhorge

DiffusionInlineCommentPreviewController.php
No OneTemporary

Size
712 B
Referenced Files
None
Subscribers
None

DiffusionInlineCommentPreviewController.php

<?php
final class DiffusionInlineCommentPreviewController
extends PhabricatorInlineCommentPreviewController {
protected function loadInlineComments() {
$viewer = $this->getViewer();
return PhabricatorAuditInlineComment::loadDraftComments(
$viewer,
$this->getCommitPHID());
}
protected function loadObjectOwnerPHID() {
$viewer = $this->getViewer();
$commit = id(new DiffusionCommitQuery())
->setViewer($viewer)
->withPHIDs(array($this->getCommitPHID()))
->executeOne();
if (!$commit) {
return null;
}
return $commit->getAuthorPHID();
}
private function getCommitPHID() {
return $this->getRequest()->getURIData('phid');
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 9:20 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
214008
Default Alt Text
DiffusionInlineCommentPreviewController.php (712 B)

Event Timeline