Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96313123
ManiphestExcelFormat.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
Wed, Dec 25, 03:01
Size
947 B
Mime Type
text/x-php
Expires
Fri, Dec 27, 03:01 (2 d)
Engine
blob
Format
Raw Data
Handle
23159099
Attached To
rPH Phabricator
ManiphestExcelFormat.php
View Options
<?php
abstract
class
ManiphestExcelFormat
{
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
;
}
public
abstract
function
getName
();
public
abstract
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
*/
public
abstract
function
buildWorkbook
(
PHPExcel
$workbook
,
array
$tasks
,
array
$handles
,
PhabricatorUser
$user
);
}
Event Timeline
Log In to Comment