forked from INTER-Mediator/INTER-Mediator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINTER-Mediator.php
31 lines (27 loc) · 1.14 KB
/
INTER-Mediator.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* INTER-Mediator
* Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
* This project started at the end of 2009 by Masayuki Nii [email protected].
*
* INTER-Mediator is supplied under MIT License.
* Please see the full license for details:
* https://github.com/INTER-Mediator/INTER-Mediator/blob/master/dist-docs/License.txt
*
* @copyright Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
* @link https://inter-mediator.com/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
// error_reporting(E_ALL); // For debugging
require_once('src/php/INTER-Mediator.php');
function IM_Entry($dataSource, $options, $dbSpecification, $debug = false)
{
INTERMediator\IM_Entry($dataSource, $options, $dbSpecification, $debug, $_SERVER['SCRIPT_FILENAME']);
}
function IM_Entry_YAML($yaml, $defFile = null) {
$yamlContent = INTERMediator\IMUtil::getDefinitionFromYAML($yaml);
IM_Entry(
$yamlContent['contexts'] ?? null, $yamlContent['options'] ?? null,
$yamlContent['connection'] ?? null, $yamlContent['debug'] ?? 2, $defFile
);
}