Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102639507
PhabricatorLiskExportEngineExtension.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
Sat, Feb 22, 19:05
Size
927 B
Mime Type
text/x-php
Expires
Mon, Feb 24, 19:05 (2 d)
Engine
blob
Format
Raw Data
Handle
24379951
Attached To
rPH Phabricator
PhabricatorLiskExportEngineExtension.php
View Options
<?php
final
class
PhabricatorLiskExportEngineExtension
extends
PhabricatorExportEngineExtension
{
const
EXTENSIONKEY
=
'lisk'
;
public
function
supportsObject
(
$object
)
{
if
(!(
$object
instanceof
LiskDAO
))
{
return
false
;
}
if
(!
$object
->
getConfigOption
(
LiskDAO
::
CONFIG_TIMESTAMPS
))
{
return
false
;
}
return
true
;
}
public
function
newExportFields
()
{
return
array
(
id
(
new
PhabricatorEpochExportField
())
->
setKey
(
'dateCreated'
)
->
setLabel
(
pht
(
'Created'
)),
id
(
new
PhabricatorEpochExportField
())
->
setKey
(
'dateModified'
)
->
setLabel
(
pht
(
'Modified'
)),
);
}
public
function
newExportData
(
array
$objects
)
{
$map
=
array
();
foreach
(
$objects
as
$object
)
{
$map
[]
=
array
(
'dateCreated'
=>
$object
->
getDateCreated
(),
'dateModified'
=>
$object
->
getDateModified
(),
);
}
return
$map
;
}
}
Event Timeline
Log In to Comment