Skip to content

Commit

Permalink
Removed old import and export classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
anuko committed Nov 16, 2018
1 parent b36d197 commit e61ac06
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 946 deletions.
420 changes: 0 additions & 420 deletions WEB-INF/lib/ttExportHelper.class.php

This file was deleted.

509 changes: 0 additions & 509 deletions WEB-INF/lib/ttImportHelper.class.php

This file was deleted.

5 changes: 2 additions & 3 deletions WEB-INF/lib/ttOrgExportHelper.class.php
Expand Up @@ -30,9 +30,8 @@
import('ttTimeHelper');
import('ttGroupExportHelper');

// ttOrgExportHelper - this class is a future replacement for ttExportHelper.
// Currently, it is work in progress.
// When done, it should handle export of organizations containing multiple groups.
// ttOrgExportHelper handles export of organizations consisting of multiple groups
// into XML file for import (migrating) to another server.
class ttOrgExportHelper {

var $fileName = null; // Name of file with data.
Expand Down
1 change: 1 addition & 0 deletions WEB-INF/lib/ttOrgImportHelper.class.php
Expand Up @@ -32,6 +32,7 @@
import('ttProjectHelper');
import('ttClientHelper');
import('ttInvoiceHelper');
import('ttTimeHelper');
import('ttCustomFieldHelper');
import('ttExpenseHelper');
import('ttFavReportHelper');
Expand Down
2 changes: 1 addition & 1 deletion WEB-INF/templates/footer.tpl
Expand Up @@ -12,7 +12,7 @@
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
<td align="center">&nbsp;Anuko Time Tracker 1.18.14.4431 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<td align="center">&nbsp;Anuko Time Tracker 1.18.14.4432 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
Expand Down
7 changes: 1 addition & 6 deletions export.php
Expand Up @@ -27,7 +27,6 @@
// +----------------------------------------------------------------------+

require_once('initialize.php');
import('ttExportHelper');
import('ttOrgExportHelper');
import('form.Form');

Expand Down Expand Up @@ -57,11 +56,7 @@
$mime_type = 'application/x-bzip2';
}

// if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) {
$exportHelper = new ttOrgExportHelper();
// } else {
// $exportHelper = new ttExportHelper();
// }
$exportHelper = new ttOrgExportHelper();
if ($exportHelper->createDataFile($compress)) {
header('Pragma: public'); // This is needed for IE8 to download files over https.
header('Content-Type: '.$mime_type);
Expand Down
9 changes: 2 additions & 7 deletions import.php
Expand Up @@ -27,7 +27,6 @@
// +----------------------------------------------------------------------+

require_once('initialize.php');
import('ttImportHelper');
import('ttOrgImportHelper');
import('form.Form');

Expand All @@ -43,12 +42,8 @@
$form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->get('button.import')));

if ($request->isPost()) {
// if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) {
$import = new ttOrgImportHelper($err);
// } else {
// $import = new ttImportHelper($err);
// }
$import->importXml();
$importHelper = new ttOrgImportHelper($err);
$importHelper->importXml();
if ($err->no()) $msg->add($i18n->get('form.import.success'));
} // isPost

Expand Down

0 comments on commit e61ac06

Please sign in to comment.