Path: blob/master/src/applications/audit/storage/PhabricatorAuditInlineComment.php
12256 views
<?php12final class PhabricatorAuditInlineComment3extends PhabricatorInlineComment {45protected function newStorageObject() {6return new PhabricatorAuditTransactionComment();7}89public function getControllerURI() {10return urisprintf(11'/diffusion/inline/edit/%s/',12$this->getCommitPHID());13}1415public function supportsHiding() {16return false;17}1819public function isHidden() {20return false;21}2223public function getTransactionCommentForSave() {24$content_source = PhabricatorContentSource::newForSource(25PhabricatorOldWorldContentSource::SOURCECONST);2627$this->getStorageObject()28->setViewPolicy('public')29->setEditPolicy($this->getAuthorPHID())30->setContentSource($content_source)31->setCommentVersion(1);3233return $this->getStorageObject();34}3536public static function newFromModernComment(37PhabricatorAuditTransactionComment $comment) {3839$obj = new PhabricatorAuditInlineComment();40$obj->setStorageObject($comment);4142return $obj;43}4445public function setPathID($id) {46$this->getStorageObject()->setPathID($id);47return $this;48}4950public function getPathID() {51return $this->getStorageObject()->getPathID();52}5354public function setCommitPHID($commit_phid) {55$this->getStorageObject()->setCommitPHID($commit_phid);56return $this;57}5859public function getCommitPHID() {60return $this->getStorageObject()->getCommitPHID();61}6263public function setChangesetID($id) {64return $this->setPathID($id);65}6667public function getChangesetID() {68return $this->getPathID();69}7071}727374