-
Notifications
You must be signed in to change notification settings - Fork 1
/
include_MySQL.php
42 lines (40 loc) · 1.24 KB
/
include_MySQL.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
32
33
34
35
36
37
38
39
40
41
42
<?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
*/
//require_once(dirname(dirname(dirname(__FILE__))) . '/INTER-Mediator.php');
require_once './vendor/inter-mediator/inter-mediator/INTER-Mediator.php';
require_once('./vendor/autoload.php');
IM_Entry(
array(
array(
'name' => 'information',
'key' => 'id',
'records' => 1,
'maxrecords' => 1,
),
),
array(
'formatter' => array(
array(
'field' => 'information@lastupdated',
'converter-class' => 'MySQLDateTime',
'parameter'=>'%Y年%m月%d日',
)
),
),
array(
'db-class' => 'PDO',
),
false
);