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