Differential D13612 Diff 32970 src/applications/differential/herald/DifferentialDiffContentRemovedHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/herald/DifferentialDiffContentRemovedHeraldField.php
<?php | <?php | ||||
final class DifferentialDiffContentRemovedHeraldField | final class DifferentialDiffContentRemovedHeraldField | ||||
extends DifferentialDiffHeraldField { | extends DifferentialDiffHeraldField { | ||||
const FIELDCONST = 'differential.diff.old'; | const FIELDCONST = 'differential.diff.old'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Removed file content'); | return pht('Removed file content'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $this->getAdapter()->loadRemovedContentDictionary(); | return $this->getAdapter()->loadRemovedContentDictionary(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return self::STANDARD_TEXT_MAP; | return self::STANDARD_TEXT_MAP; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | |||||
return HeraldAdapter::VALUE_TEXT; | |||||
} | |||||
} | } |