2015-07-07 20:53:17 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class DiffusionCommitAutocloseHeraldField
|
|
|
|
extends DiffusionCommitHeraldField {
|
|
|
|
|
|
|
|
const FIELDCONST = 'diffusion.commit.autoclose';
|
|
|
|
|
2019-04-15 18:44:39 +02:00
|
|
|
public function getFieldGroupKey() {
|
|
|
|
return HeraldDeprecatedFieldGroup::FIELDGROUPKEY;
|
|
|
|
}
|
|
|
|
|
2015-07-07 20:53:17 +02:00
|
|
|
public function getHeraldFieldName() {
|
2019-04-15 18:44:39 +02:00
|
|
|
// Herald no longer triggers until a commit is reachable from a permanent
|
|
|
|
// ref, so this condition is always true by definition.
|
|
|
|
return pht('Commit Autocloses (Deprecated)');
|
2015-07-07 20:53:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldValue($object) {
|
2019-04-15 18:44:39 +02:00
|
|
|
return true;
|
2015-07-07 20:53:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldConditions() {
|
|
|
|
return array(
|
|
|
|
HeraldAdapter::CONDITION_UNCONDITIONALLY,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldValueType($condition) {
|
2015-07-16 23:12:44 +02:00
|
|
|
return new HeraldEmptyFieldValue();
|
2015-07-07 20:53:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|