Page MenuHomePhorge

DifferentialPathField.php
No OneTemporary

Size
744 B
Referenced Files
None
Subscribers
None

DifferentialPathField.php

<?php
final class DifferentialPathField
extends DifferentialCustomField {
public function getFieldKey() {
return 'differential:path';
}
public function getFieldName() {
return pht('Path');
}
public function getFieldDescription() {
return pht('Shows the local path 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) {
$path = $this->getObject()->getActiveDiff()->getSourcePath();
if (!$path) {
return null;
}
return $path;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, May 4, 5:47 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
64198
Default Alt Text
DifferentialPathField.php (744 B)

Event Timeline