2015-07-06 22:17:14 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class ManiphestTaskAssigneeHeraldField
|
|
|
|
extends ManiphestTaskHeraldField {
|
|
|
|
|
|
|
|
const FIELDCONST = 'maniphest.task.assignee';
|
|
|
|
|
|
|
|
public function getHeraldFieldName() {
|
|
|
|
return pht('Assignee');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldValue($object) {
|
|
|
|
return $object->getOwnerPHID();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function getHeraldFieldStandardConditions() {
|
|
|
|
return self::STANDARD_PHID_NULLABLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldFieldValueType($condition) {
|
2015-07-07 20:53:17 +02:00
|
|
|
switch ($condition) {
|
|
|
|
case HeraldAdapter::CONDITION_EXISTS:
|
|
|
|
case HeraldAdapter::CONDITION_NOT_EXISTS:
|
|
|
|
return HeraldAdapter::VALUE_NONE;
|
|
|
|
default:
|
|
|
|
return HeraldAdapter::VALUE_USER;
|
|
|
|
}
|
2015-07-06 22:17:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|