Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97583600
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
Sun, Jan 5, 11:28
Size
927 B
Mime Type
text/x-php
Expires
Tue, Jan 7, 11:28 (2 d)
Engine
blob
Format
Raw Data
Handle
23430951
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