Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/storage/PhabricatorAuditInlineComment.php
<?php | <?php | ||||
final class PhabricatorAuditInlineComment | final class PhabricatorAuditInlineComment | ||||
implements PhabricatorInlineCommentInterface { | implements PhabricatorInlineCommentInterface { | ||||
private $proxy; | private $proxy; | ||||
private $syntheticAuthor; | private $syntheticAuthor; | ||||
public function __construct() { | public function __construct() { | ||||
$this->proxy = new PhabricatorAuditTransactionComment(); | $this->proxy = new PhabricatorAuditTransactionComment(); | ||||
} | } | ||||
public function __clone() { | public function __clone() { | ||||
$this->proxy = clone $this->proxy; | $this->proxy = clone $this->proxy; | ||||
} | } | ||||
public function getTransactionPHID() { | |||||
return $this->proxy->getTransactionPHID(); | |||||
} | |||||
public function getTransactionCommentForSave() { | public function getTransactionCommentForSave() { | ||||
$content_source = PhabricatorContentSource::newForSource( | $content_source = PhabricatorContentSource::newForSource( | ||||
PhabricatorContentSource::SOURCE_LEGACY, | PhabricatorContentSource::SOURCE_LEGACY, | ||||
array()); | array()); | ||||
$this->proxy | $this->proxy | ||||
->setViewPolicy('public') | ->setViewPolicy('public') | ||||
->setEditPolicy($this->getAuthorPHID()) | ->setEditPolicy($this->getAuthorPHID()) | ||||
▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines |