Remove product literal strings in "pht()", part 18
[phabricator.git] / src / infrastructure / export / field / PhabricatorExportField.php
blob7ee09185953ebdde1620646754cbeda65e3f64e3
1 <?php
3 abstract class PhabricatorExportField
4 extends Phobject {
6 private $key;
7 private $label;
9 public function setKey($key) {
10 $this->key = $key;
11 return $this;
14 public function getKey() {
15 return $this->key;
18 public function setLabel($label) {
19 $this->label = $label;
20 return $this;
23 public function getLabel() {
24 return $this->label;
27 public function getTextValue($value) {
28 $natural_value = $this->getNaturalValue($value);
30 if ($natural_value === null) {
31 return null;
34 return (string)$natural_value;
37 public function getNaturalValue($value) {
38 return $value;
41 public function getPHPExcelValue($value) {
42 return $this->getTextValue($value);
45 /**
46 * @phutil-external-symbol class PHPExcel_Cell_DataType
48 public function formatPHPExcelCell($cell, $style) {
49 $cell->setDataType(PHPExcel_Cell_DataType::TYPE_STRING);
52 public function getCharacterWidth() {
53 return 24;