Refbase update_2021-01-28_15_58
This commit is contained in:
39
export/export_odfxml.php
Normal file
39
export/export_odfxml.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> and the file's
|
||||
// original author(s).
|
||||
//
|
||||
// This code is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY. Please see the GNU General Public
|
||||
// License for more details.
|
||||
//
|
||||
// File: ./export/export_odfxml.php
|
||||
// Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/export/export_odfxml.php $
|
||||
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
||||
//
|
||||
// Created: 01-Jun-06, 13:57
|
||||
// Modified: $Date: 2007-02-17 01:10:14 +0000 (Sat, 17 Feb 2007) $
|
||||
// $Author: msteffens $
|
||||
// $Revision: 894 $
|
||||
|
||||
// This exports ODF XML. This file must reside in the 'export' directory of the refbase root directory.
|
||||
// It uses functions from include file 'odfxml.inc.php' that requires the ActiveLink PHP XML Package,
|
||||
// which is available under the GPL from: <http://www.active-link.com/software/>
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// --- BEGIN EXPORT FORMAT ---
|
||||
|
||||
// Export found records as ODF XML:
|
||||
function exportRecords($result, $rowOffset, $showRows, $exportStylesheet, $displayType)
|
||||
{
|
||||
// Generate and serve an ODF XML file of ALL records:
|
||||
$recordCollection = odfDocument($result, "spreadsheet"); // function 'odfDocument()' is defined in 'odfxml.inc.php'
|
||||
|
||||
return $recordCollection;
|
||||
}
|
||||
|
||||
// --- END EXPORT FORMAT ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
Reference in New Issue
Block a user