2015-07-07 20:53:17 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class DiffusionCommitAutocloseHeraldField
|
|
|
|
extends DiffusionCommitHeraldField {
|
|
|
|
|
|
|
|
const FIELDCONST = 'diffusion.commit.autoclose';
|
|
|
|
|
|
|
|
public function getHeraldFieldName() {
|
2019-04-14 22:20:23 +02:00
|
|
|
return pht('Commit is on permanent branch');
|
2015-07-07 20:53:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldValue($object) {
|
|
|
|
return $object->getRepository()->shouldAutocloseCommit($object);
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|