mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 11:42:42 +01:00
32 lines
607 B
PHP
32 lines
607 B
PHP
|
<?php
|
||
|
|
||
|
final class ManiphestTaskEdgeTransaction
|
||
|
extends ManiphestTaskTransactionType {
|
||
|
|
||
|
const TRANSACTIONTYPE = 'edge';
|
||
|
|
||
|
public function generateOldValue($object) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public function shouldHide() {
|
||
|
$commit_phid = $this->getMetadataValue('commitPHID');
|
||
|
$edge_type = $this->getMetadataValue('edge:type');
|
||
|
|
||
|
if ($edge_type == ManiphestTaskHasCommitEdgeType::EDGECONST) {
|
||
|
if ($commit_phid) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public function getActionName() {
|
||
|
return pht('Attached');
|
||
|
}
|
||
|
|
||
|
public function getIcon() {
|
||
|
return 'fa-thumb-tack';
|
||
|
}
|
||
|
|
||
|
}
|