Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1062852
ManiphestExcelFormat.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
964 B
Referenced Files
None
Subscribers
None
ManiphestExcelFormat.php
View Options
<?php
abstract
class
ManiphestExcelFormat
extends
Phobject
{
final
public
static
function
loadAllFormats
()
{
$classes
=
id
(
new
PhutilSymbolLoader
())
->
setAncestorClass
(
__CLASS__
)
->
setConcreteOnly
(
true
)
->
selectAndLoadSymbols
();
$objects
=
array
();
foreach
(
$classes
as
$class
)
{
$objects
[
$class
[
'name'
]]
=
newv
(
$class
[
'name'
],
array
());
}
$objects
=
msort
(
$objects
,
'getOrder'
);
return
$objects
;
}
abstract
public
function
getName
();
abstract
public
function
getFileName
();
public
function
getOrder
()
{
return
0
;
}
protected
function
computeExcelDate
(
$epoch
)
{
$seconds_per_day
=
(
60
*
60
*
24
);
$offset
=
(
$seconds_per_day
*
25569
);
return
(
$epoch
+
$offset
)
/
$seconds_per_day
;
}
/**
* @phutil-external-symbol class PHPExcel
*/
abstract
public
function
buildWorkbook
(
PHPExcel
$workbook
,
array
$tasks
,
array
$handles
,
PhabricatorUser
$user
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 29, 10:13 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
259049
Default Alt Text
ManiphestExcelFormat.php (964 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment