2015-07-08 12:26:57 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class DiffusionPreCommitContentAffectedFilesHeraldField
|
|
|
|
extends DiffusionPreCommitContentHeraldField {
|
|
|
|
|
|
|
|
const FIELDCONST = 'diffusion.pre.commit.affected';
|
|
|
|
|
|
|
|
public function getHeraldFieldName() {
|
|
|
|
return pht('Affected files');
|
|
|
|
}
|
|
|
|
|
2015-07-16 14:13:13 -07:00
|
|
|
public function getFieldGroupKey() {
|
|
|
|
return DiffusionChangeHeraldFieldGroup::FIELDGROUPKEY;
|
|
|
|
}
|
|
|
|
|
2015-07-08 12:26:57 -07:00
|
|
|
public function getHeraldFieldValue($object) {
|
|
|
|
return $this->getAdapter()->getDiffContent('name');
|
|
|
|
}
|
|
|
|
|
2015-07-16 14:11:44 -07:00
|
|
|
protected function getHeraldFieldStandardType() {
|
2015-07-08 12:26:57 -07:00
|
|
|
return self::STANDARD_TEXT_LIST;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|