Differential D21287 Diff 50690 src/applications/transactions/storage/PhabricatorApplicationTransactionComment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransactionComment.php
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | abstract class PhabricatorApplicationTransactionComment | ||||
} | } | ||||
public function getRawRemarkupURI() { | public function getRawRemarkupURI() { | ||||
return urisprintf( | return urisprintf( | ||||
'/transactions/raw/%s/', | '/transactions/raw/%s/', | ||||
$this->getTransactionPHID()); | $this->getTransactionPHID()); | ||||
} | } | ||||
public function isEmptyComment() { | |||||
$content = $this->getContent(); | |||||
// The comment is empty if there's no content, or if the content only has | |||||
// whitespace. | |||||
if (!strlen(trim($content))) { | |||||
return true; | |||||
} | |||||
return false; | |||||
} | |||||
/* -( PhabricatorMarkupInterface )----------------------------------------- */ | /* -( PhabricatorMarkupInterface )----------------------------------------- */ | ||||
public function getMarkupFieldKey($field) { | public function getMarkupFieldKey($field) { | ||||
return PhabricatorPHIDConstants::PHID_TYPE_XCMT.':'.$this->getPHID(); | return PhabricatorPHIDConstants::PHID_TYPE_XCMT.':'.$this->getPHID(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |