Differential D13612 Diff 32970 src/applications/phriction/herald/PhrictionDocumentPathHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/herald/PhrictionDocumentPathHeraldField.php
<?php | <?php | ||||
final class PhrictionDocumentPathHeraldField | final class PhrictionDocumentPathHeraldField | ||||
extends PhrictionDocumentHeraldField { | extends PhrictionDocumentHeraldField { | ||||
const FIELDCONST = 'path'; | const FIELDCONST = 'path'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Path'); | return pht('Path'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $object->getcontent()->getSlug(); | return $object->getcontent()->getSlug(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return self::STANDARD_TEXT; | return self::STANDARD_TEXT; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | |||||
return HeraldAdapter::VALUE_TEXT; | |||||
} | |||||
} | } |