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