mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-16 03:42:41 +01:00
35 lines
728 B
PHP
35 lines
728 B
PHP
|
<?php
|
||
|
|
||
|
final class DifferentialAuthorField
|
||
|
extends DifferentialCustomField {
|
||
|
|
||
|
public function getFieldKey() {
|
||
|
return 'differential:author';
|
||
|
}
|
||
|
|
||
|
public function getFieldName() {
|
||
|
return pht('Author');
|
||
|
}
|
||
|
|
||
|
public function getFieldDescription() {
|
||
|
return pht('Stores the revision author.');
|
||
|
}
|
||
|
|
||
|
public function shouldAppearInPropertyView() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public function renderPropertyViewLabel() {
|
||
|
return $this->getFieldName();
|
||
|
}
|
||
|
|
||
|
public function getRequiredHandlePHIDsForPropertyView() {
|
||
|
return array($this->getObject()->getAuthorPHID());
|
||
|
}
|
||
|
|
||
|
public function renderPropertyViewValue(array $handles) {
|
||
|
return $handles[$this->getObject()->getAuthorPHID()]->renderLink();
|
||
|
}
|
||
|
|
||
|
}
|