From Openflyers
PHP file header template
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* filename.php
*
* short description
*
* PHP version 5
*
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (file license.txt);
* if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @category category name
* @author firstname and lastname <email address>
* @copyright 2003-2007 The OpenFlyers Group <devteam email address>
* @license http://www.gnu.org/licenses/gpl.html GNU-GPL License
* @link http://openflyers.org
* @since file creation date (format: Wed Jan 24 2007)
*/
// security constant test to know if we are called within index.php or not
if ( !defined( 'SECURITY_CONST' ) ) {
die( 'This file should be required from index.php' ); // we stop the script now
}
Array display construction template
$className = new ClassName($GLOBALS['db']);
$report = new Report($GLOBALS['db'], 'XML filename');
$report->addParameter('title1', _tr( 'SOME_SENTENCE' ));
$report->addDOMDocument( $aircraft->table2Dom('WHERE something') );
$report->debugDisplay($menuAction,1);
$report->printPage('XSL filename' );