Source for file case04_debug.php
Documentation is available at case04_debug.php
require_once 'XML/Query2XML.php';
$debugLogger = Log ::factory ('file', 'case04.log', 'Query2XML');
$query2xml->enableDebugLog ($debugLogger);
$query2xml->startProfiling ();
$dom = $query2xml->getXML (
'rootTag' => 'MUSIC_LIBRARY',
'idColumn' => 'artistid',
'BIRTH_YEAR' => 'birth_year',
'BIRTH_YEAR_TWO_DIGIT' => "#firstTwoChars()",
'BIRTH_PLACE' => 'birth_place',
'query' => 'SELECT * FROM album WHERE artist_id = ?'
'merge_selective' => array ('genre')
'PUBLISHED_YEAR' => 'published_year',
'ARTISTID' => 'artistid',
'MAINTAINER' => ':Lukas Feiler'
header('Content-Type: application/xml');
$dom->formatOutput = true;
$fp->write ('case04.profile', $query2xml->getProfile (), FILE_MODE_WRITE );
return substr($record['birth_year'], 2 );
Documentation generated on Mon, 11 Mar 2019 15:43:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|