Differential D19665 Diff 46988 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | abstract class PhabricatorApplicationTransaction | ||||
public function setIsSilentTransaction($silent) { | public function setIsSilentTransaction($silent) { | ||||
return $this->setMetadataValue('core.silent', $silent); | return $this->setMetadataValue('core.silent', $silent); | ||||
} | } | ||||
public function getIsSilentTransaction() { | public function getIsSilentTransaction() { | ||||
return (bool)$this->getMetadataValue('core.silent', false); | return (bool)$this->getMetadataValue('core.silent', false); | ||||
} | } | ||||
public function setIsMFATransaction($mfa) { | |||||
return $this->setMetadataValue('core.mfa', $mfa); | |||||
} | |||||
public function getIsMFATransaction() { | |||||
return (bool)$this->getMetadataValue('core.mfa', false); | |||||
} | |||||
public function attachComment( | public function attachComment( | ||||
PhabricatorApplicationTransactionComment $comment) { | PhabricatorApplicationTransactionComment $comment) { | ||||
$this->comment = $comment; | $this->comment = $comment; | ||||
$this->commentNotLoaded = false; | $this->commentNotLoaded = false; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setCommentNotLoaded($not_loaded) { | public function setCommentNotLoaded($not_loaded) { | ||||
▲ Show 20 Lines • Show All 1,280 Lines • ▼ Show 20 Lines | foreach ($group as $xaction) { | ||||
return false; | return false; | ||||
} | } | ||||
// Don't group silent and nonsilent transactions together. | // Don't group silent and nonsilent transactions together. | ||||
$is_silent = $this->getIsSilentTransaction(); | $is_silent = $this->getIsSilentTransaction(); | ||||
if ($is_silent != $xaction->getIsSilentTransaction()) { | if ($is_silent != $xaction->getIsSilentTransaction()) { | ||||
return false; | return false; | ||||
} | } | ||||
// Don't group MFA and non-MFA transactions together. | |||||
$is_mfa = $this->getIsMFATransaction(); | |||||
if ($is_mfa != $xaction->getIsMFATransaction()) { | |||||
return false; | |||||
} | |||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
public function renderExtraInformationLink() { | public function renderExtraInformationLink() { | ||||
$herald_xscript_id = $this->getMetadataValue('herald:transcriptID'); | $herald_xscript_id = $this->getMetadataValue('herald:transcriptID'); | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |