-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex_context.php
More file actions
102 lines (101 loc) · 3.09 KB
/
index_context.php
File metadata and controls
102 lines (101 loc) · 3.09 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
/**
* Created by PhpStorm.
* User: msyk
* Date: 2018/05/26
* Time: 18:59
*/
require_once './vendor/inter-mediator/inter-mediator/INTER-Mediator.php';
IM_Entry(array(
0 =>
array(
'name' => 'message',
'table' => 'chat',
'view' => 'chat',
'key' => 'id',
'query' =>
array(
0 =>
array(
'field' => 'groupname',
'value' => '',
'operator' => 'IS NULL',
),
),
'sort' =>
array(
0 =>
array(
'field' => 'postdt',
'direction' => 'desc',
),
),
'post-reconstruct' => true,
'post-dismiss-message' => '投稿しました',
'validation' =>
array(
0 =>
array(
'field' => 'user',
'rule' => 'value != \'\'',
'message' => '入力してください。',
),
1 =>
array(
'field' => 'message',
'rule' => 'value != \'\'',
'message' => '入力してください。',
),
),
),
1 =>
array(
'name' => 'comment',
'table' => 'chat',
'view' => 'chat',
'key' => 'id',
'relation' =>
array(
0 =>
array(
'foreign-key' => 'groupname',
'join-field' => 'id',
'operator' => '=',
),
),
'post-reconstruct' => true,
'post-dismiss-message' => '投稿しました',
'sort' =>
array(
0 =>
array(
'field' => 'postdt',
'direction' => 'desc',
),
),
'validation' =>
array(
0 =>
array(
'field' => 'user',
'rule' => 'value != \'\'',
'message' => '入力してください。',
),
1 =>
array(
'field' => 'message',
'rule' => 'value != \'\'',
'message' => '入力してください。',
),
),
),
),
array(
'formatter' => array(
array('field' => 'chat@message', 'converter-class' => 'HTMLString'),
),
),
array(
'db-class' => 'PDO',
),
false);