Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98060971
PhabricatorExportField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jan 9, 05:00
Size
992 B
Mime Type
text/x-php
Expires
Sat, Jan 11, 05:00 (2 d)
Engine
blob
Format
Raw Data
Handle
23448739
Attached To
rPH Phabricator
PhabricatorExportField.php
View Options
<?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
)
{
$natural_value
=
$this
->
getNaturalValue
(
$value
);
if
(
$natural_value
===
null
)
{
return
null
;
}
return
(
string
)
$natural_value
;
}
public
function
getNaturalValue
(
$value
)
{
return
$value
;
}
public
function
getPHPExcelValue
(
$value
)
{
return
$this
->
getTextValue
(
$value
);
}
/**
* @phutil-external-symbol class PHPExcel_Cell_DataType
*/
public
function
formatPHPExcelCell
(
$cell
,
$style
)
{
$cell
->
setDataType
(
PHPExcel_Cell_DataType
::
TYPE_STRING
);
}
public
function
getCharacterWidth
()
{
return
24
;
}
}
Event Timeline
Log In to Comment