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