mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 12:42:43 +01:00
a79bb55f3f
Summary: Depends on D18919. Ref T13046. Adds some simple modular exporters. Test Plan: Exported pull logs in each format. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13046 Differential Revision: https://secure.phabricator.com/D18934
35 lines
553 B
PHP
35 lines
553 B
PHP
<?php
|
|
|
|
abstract class PhabricatorExportField
|
|
extends Phobject {
|
|
|
|
private $key;
|
|
private $label;
|
|
|
|
public function setKey($key) {
|
|
$this->key = $key;
|
|
return $this;
|
|
}
|
|
|
|
public function getKey() {
|
|
return $this->key;
|
|
}
|
|
|
|
public function setLabel($label) {
|
|
$this->label = $label;
|
|
return $this;
|
|
}
|
|
|
|
public function getLabel() {
|
|
return $this->label;
|
|
}
|
|
|
|
public function getTextValue($value) {
|
|
return (string)$this->getNaturalValue($value);
|
|
}
|
|
|
|
public function getNaturalValue($value) {
|
|
return $value;
|
|
}
|
|
|
|
}
|