Page MenuHomePhorge

DifferentialHostField.php
No OneTemporary

Size
747 B
Referenced Files
None
Subscribers
None

DifferentialHostField.php

<?php
final class DifferentialHostField
extends DifferentialCustomField {
public function getFieldKey() {
return 'differential:host';
}
public function getFieldName() {
return pht('Host');
}
public function getFieldDescription() {
return pht('Shows the local host where the diff came from.');
}
public function shouldDisableByDefault() {
return true;
}
public function shouldAppearInPropertyView() {
return true;
}
public function renderPropertyViewLabel() {
return $this->getFieldName();
}
public function renderPropertyViewValue(array $handles) {
$host = $this->getObject()->getActiveDiff()->getSourceMachine();
if (!$host) {
return null;
}
return $host;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, May 4, 7:01 PM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
66921
Default Alt Text
DifferentialHostField.php (747 B)

Event Timeline