<?php
// import the DataService Library
require_once("DataService.php");
// ----------building the queries for ------------
$ = array(
"inputFormat" => $_input_format,
"outputFormat" => $_output_format,
"sql" => $_sql,
"inputMapping" => $_input_mapping);
// ------------finished queries for --------------
// building the operations array
$operations = array(
"" => $
);
,
// create the DataService object and reply
$ds = new DataService(array("operations" => $operations,
"config" => $config,
"serviceName" => ""));
$ds->reply();
?>
// building the config array
$config = array("db" => "mysql", // change this to your db engine name
"username" => "",
"username" => "your database user name", // change this to your db user name
"password" => "",
"password" => "your database password", // change this to your db password
"dbname" => "your database name", // change this to your db name
"dbhost" => "your database host"); // change this to your db host
// building the input format for the
$_input_format = NULL;
$_input_format = array(
"" => "
"
);
,
// building the output format for the
$_output_format = array(
"resultElement" => "",
"rowElement" => "",
"useNil" => "",
"defaultNamespace" => "",
"columnDefault" => "",
"elements" => $_elements,
"attributes" => $_attributes,
"texts" => $_texts,
"queries" => $_queries,
"elementsOrder" => $_elements_order);
// building the sql for the
$_sql = "";
// building the input mapping for the
$_input_mapping = NULL;
$_input_mapping = array(
"" => "
"
);
,
// building the output elements for the
$_elements = array(
""
array("param" => "")
array("value" => "")
"" =>
);
,
// building the output attributes for the
$_attributes = array(
""
array("param" => "")
array("value" => "")
"" =>
);
,
// building the output texts for the
$_texts = array(
text
""
array("param" => "")
array("value" => "")
"" =>
);
,
1
// ------- building the query called from query ------
$_query = array(
"inputFormat" => $_input_format,
"outputFormat" => $_output_format,
"sql" => $_sql,
"inputMapping" => $_input_mapping);
// ------- finished the query called from query -------
// building the output queries for the
$_queries = array(
query
$_query
"" =>
);
,
// building the output elements order for the
$_elements_order = NULL;
$_elements_order = array(
1
1
text
query
""
,
);
_
_