Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/herald/ManiphestTaskAuthorHeraldField.php
<?php | <?php | ||||
final class ManiphestTaskAuthorHeraldField | final class ManiphestTaskAuthorHeraldField | ||||
extends ManiphestTaskHeraldField { | extends ManiphestTaskHeraldField { | ||||
const FIELDCONST = 'maniphest.task.author'; | const FIELDCONST = 'maniphest.task.author'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Author'); | return pht('Author'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $object->getAuthorPHID(); | return $object->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; | ||||
} | } | ||||
} | } |