Page MenuHomec4science

PhabricatorIntExportField.php
No OneTemporary

File Metadata

Created
Sat, Jan 18, 19:30

PhabricatorIntExportField.php

<?php
final class PhabricatorIntExportField
extends PhabricatorExportField {
public function getNaturalValue($value) {
if ($value === null) {
return $value;
}
return (int)$value;
}
/**
* @phutil-external-symbol class PHPExcel_Cell_DataType
*/
public function formatPHPExcelCell($cell, $style) {
$cell->setDataType(PHPExcel_Cell_DataType::TYPE_NUMERIC);
}
public function getCharacterWidth() {
return 8;
}
}

Event Timeline