Differential D20131 Diff 48068 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 163 Lines • ▼ Show 20 Lines | abstract class PhabricatorApplicationTransaction | ||||
public function setIsMFATransaction($mfa) { | public function setIsMFATransaction($mfa) { | ||||
return $this->setMetadataValue('core.mfa', $mfa); | return $this->setMetadataValue('core.mfa', $mfa); | ||||
} | } | ||||
public function getIsMFATransaction() { | public function getIsMFATransaction() { | ||||
return (bool)$this->getMetadataValue('core.mfa', false); | return (bool)$this->getMetadataValue('core.mfa', false); | ||||
} | } | ||||
public function setIsLockOverrideTransaction($override) { | |||||
return $this->setMetadataValue('core.lock-override', $override); | |||||
} | |||||
public function getIsLockOverrideTransaction() { | |||||
return (bool)$this->getMetadataValue('core.lock-override', 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,344 Lines • ▼ Show 20 Lines | foreach ($group as $xaction) { | ||||
} | } | ||||
// Don't group two "Sign with MFA" transactions together. | // Don't group two "Sign with MFA" transactions together. | ||||
if ($this->getTransactionType() === $type_mfa) { | if ($this->getTransactionType() === $type_mfa) { | ||||
if ($xaction->getTransactionType() === $type_mfa) { | if ($xaction->getTransactionType() === $type_mfa) { | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
// Don't group lock override and non-override transactions together. | |||||
$is_override = $this->getIsLockOverrideTransaction(); | |||||
if ($is_override != $xaction->getIsLockOverrideTransaction()) { | |||||
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 216 Lines • Show Last 20 Lines |