Page MenuHomestyx hydra

PhabricatorLiskExportEngineExtension.php
No OneTemporary

PhabricatorLiskExportEngineExtension.php

<?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;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Dec 1, 1:17 AM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
430088
Default Alt Text
PhabricatorLiskExportEngineExtension.php (927 B)

Event Timeline