Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitContentAffectedFilesHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitContentAffectedFilesHeraldField.php
<?php | <?php | ||||
final class DiffusionPreCommitContentAffectedFilesHeraldField | final class DiffusionPreCommitContentAffectedFilesHeraldField | ||||
extends DiffusionPreCommitContentHeraldField { | extends DiffusionPreCommitContentHeraldField { | ||||
const FIELDCONST = 'diffusion.pre.commit.affected'; | const FIELDCONST = 'diffusion.pre.commit.affected'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Affected files'); | return pht('Affected files'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $this->getAdapter()->getDiffContent('name'); | return $this->getAdapter()->getDiffContent('name'); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return self::STANDARD_TEXT_LIST; | return self::STANDARD_TEXT_LIST; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | |||||
return HeraldAdapter::VALUE_TEXT; | |||||
} | |||||
} | } |