Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionCommitAffectedFilesHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionCommitAffectedFilesHeraldField.php
<?php | <?php | ||||
final class DiffusionCommitAffectedFilesHeraldField | final class DiffusionCommitAffectedFilesHeraldField | ||||
extends DiffusionCommitHeraldField { | extends DiffusionCommitHeraldField { | ||||
const FIELDCONST = 'diffusion.commit.affected'; | const FIELDCONST = 'diffusion.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()->loadAffectedPaths(); | return $this->getAdapter()->loadAffectedPaths(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return self::STANDARD_TEXT_LIST; | return self::STANDARD_TEXT_LIST; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | |||||
return HeraldAdapter::VALUE_TEXT; | |||||
} | |||||
} | } |