<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('records' => 10000, 'name' => 'testtable', 'sort' => array(array('field' => 'dt1', 'direction' => 'desc')), 'repeat-control' => 'insert delete', 'default-values' => array(array('field' => 'dt1', 'value' => date('Y-m-d H:i:s'))), 'file-upload' => array(array('field' => 'vc1', 'container' => true))), array('name' => 'fileupload', 'repeat-control' => 'delete')), array('formatter' => array(array('field' => 'testtable@dt1', 'converter-class' => 'FMDateTime'))), array('db-class' => 'FileMaker_FX'), false);
Пример #2
0
<?php

/**
 * Created by PhpStorm.
 * User: msyk
 * Date: 2013/11/05
 * Time: 1:22
 */
require_once 'rsrcs/INTER-Mediator/INTER-Mediator.php';
IM_Entry(array(array('records' => 60, 'name' => 'activeuser', 'view' => 'authuser', 'table' => 'dummy', 'query' => array(array('field' => 'active', 'operator' => '=', "value" => 1)), 'sort' => array(array('field' => 'username')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer', 'view' => 'answer', 'table' => 'dummy', 'paging' => true, 'sort' => array(array('field' => 'username'), array('field' => 'qnum')), 'query' => array(array('field' => 'qnum', 'operator' => '>=', "value" => 1), array('field' => 'qnum', 'operator' => '<=', "value" => 8)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'everyuser', 'view' => 'authuser', 'table' => 'dummy', 'records' => 1, 'paging' => true, 'query' => array(array('field' => 'active', 'operator' => '>=', "value" => 1), array('field' => 'active', 'operator' => '<', "value" => 9)), 'sort' => array(array('field' => 'username')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 10000, 'name' => 'everyprogress', 'view' => 'progressdata', 'table' => 'dummy', 'sort' => array(array('field' => 'finishdt')), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'survey', 'view' => 'answer', 'table' => 'dummy', 'paging' => true, 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 201)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progress', 'view' => 'progressdata', 'table' => 'dummy', 'paging' => true, 'sort' => array(array('field' => 'finishdt', 'direction' => "desc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata001', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 1)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata002', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 2)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata003', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 3)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata004', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 4)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata005', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 5)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata006', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 6)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata007', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 7)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata008', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 8)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata009', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 9)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata010', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 10)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata101', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 101)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata102', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 102)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata102', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 102)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata103', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 103)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata104', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 104)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata105', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 105)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata106', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 106)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata107', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 107)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'progressdata108', 'view' => 'progressdata', 'table' => 'dummy', 'query' => array(array('field' => 'page', 'operator' => '=', "value" => 108)), 'relation' => array(array('foreign-key' => 'username', 'join-field' => 'username', 'operator' => '=')), 'sort' => array(array('field' => 'finishdt', 'direction' => "asc")), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer1', 'view' => 'answer_use', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 1), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer2', 'view' => 'answer_use', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 2), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer3', 'view' => 'answer_use', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 3), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer4', 'view' => 'answer_use', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 4), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer5', 'view' => 'answer_use', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 5), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer6', 'view' => 'answer_use', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 6), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer7', 'view' => 'answer_use', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 7), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'answer8', 'view' => 'answer_use', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 8), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'survey_use', 'view' => 'answer_use', 'table' => 'dummy', 'paging' => true, 'query' => array(array('field' => 'qnum', 'operator' => '=', "value" => 201), array('field' => 'active', 'operator' => 'IS NOT NULL')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'studytimesummary', 'view' => 'studytimesummary', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'authentication' => array('load' => array('group' => array('admin')))), array('records' => 60, 'name' => 'examtimesummary', 'view' => 'examtimesummary', 'table' => 'dummy', 'sort' => array(array('field' => 'username')), 'authentication' => array('load' => array('group' => array('admin'))))), array('formatter' => array(array('field' => 'examtimesummary@sum(length)', 'converter-class' => 'Number', 'parameter' => 0), array('field' => 'studytimesummary@sum(length)', 'converter-class' => 'Number', 'parameter' => 0), array('field' => 'studytimesummary@avg(status)', 'converter-class' => 'Number', 'parameter' => 1)), 'aliases' => array(), 'authentication' => array('authexpired' => '100000', 'storing' => 'cookie-domainwide', 'realm' => 'IM Survey')), array('db-class' => 'PDO'), false);
Пример #3
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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 '../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'postalcode')), null, array('db-class' => 'FileMaker_FX', 'server' => 'msyk.dyndns.org', 'port' => '80', 'user' => 'web', 'password' => 'password', 'datatype' => 'FMPro7', 'database' => 'TestDB', 'protocol' => 'HTTP'), false);
Пример #4
0
<?php

/**
 * Created by JetBrains PhpStorm.
 * User: msyk
 * Date: 12/06/09
 * Time: 8:29
 * To change this template use File | Settings | File Templates.
 */
require_once '../INTER-Mediator.php';
IM_Entry(array(array('name' => 'authuser', 'view' => 'authuser', 'table' => 'authuser', 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'sort' => array(array('field' => 'id', 'direction' => 'ASC')), 'extending-class' => "UserList"), array('name' => 'belonggroup', 'view' => 'authcor', 'table' => 'authcor', 'key' => 'id', 'repeat-control' => 'confirm-delete insert', 'relation' => array(array('foreign-key' => 'user_id', 'join-field' => 'id', 'operator' => '=')), 'sort' => array(array('field' => 'dest_group_id', 'direction' => 'ASC'))), array('name' => 'groupname', 'view' => 'authgroup', 'sort' => array(array('field' => 'id', 'direction' => 'ASC'))), array('name' => 'authgroup', 'view' => 'authgroup', 'table' => 'authgroup', 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'sort' => array(array('field' => 'id', 'direction' => 'ASC'))), array('name' => 'groupingroup', 'view' => 'authcor', 'table' => 'authcor', 'key' => 'id', 'repeat-control' => 'confirm-delete insert', 'relation' => array(array('foreign-key' => 'group_id', 'join-field' => 'id', 'operator' => '=')), 'sort' => array(array('field' => 'dest_group_id', 'direction' => 'ASC')))), array('authentication' => array('authexpired' => '300', 'storing' => 'none')), array('db-class' => 'PDO'), 0);
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'asset', 'view' => 'im_sample.asset', 'table' => 'im_sample.asset', 'key' => 'asset_id', 'repeat-control' => 'insert delete', 'records' => 5, 'paging' => true, 'sort' => array(array('field' => 'purchase', 'direction' => 'ASC')), 'default-values' => array(array('field' => 'purchase', 'value' => strftime('%Y-%m-%d')))), array('name' => 'asseteffect', 'view' => 'im_sample.asset', 'table' => 'im_sample.asset', 'sort' => array(array('field' => 'purchase', 'direction' => 'ASC')), 'query' => array(array('field' => 'discard', 'operator' => '<', 'value' => '1990-1-1')), 'repeat-control' => 'insert delete', 'records' => 5, 'paging' => true), array('name' => 'assetdetail', 'view' => 'im_sample.asset', 'table' => 'im_sample.asset', 'records' => 1, 'key' => 'asset_id'), array('name' => 'rent', 'view' => 'im_sample.rent', 'table' => 'im_sample.rent', 'key' => 'rent_id', 'sort' => array(array('field' => 'rentdate', 'direction' => 'ASC')), 'relation' => array(array('foreign-key' => 'asset_id', 'join-field' => 'asset_id', 'operator' => '=')), 'repeat-control' => 'insert delete', 'default-values' => array(array('field' => 'rentdate', 'value' => strftime('%Y-%m-%d')))), array('name' => 'staff', 'view' => 'im_sample.staff', 'table' => 'im_sample.staff'), array('name' => 'rentback', 'view' => 'im_sample.rent', 'table' => 'im_sample.rent', 'key' => 'rent_id', 'query' => array(array('field' => 'backdate', 'operator' => 'IS NULL'))), array('name' => 'category', 'view' => 'im_sample.category', 'table' => 'im_sample.category'), array('name' => 'category-in-list', 'view' => 'im_sample.category', 'table' => 'im_sample.category', 'relation' => array(array('foreign-key' => 'name', 'join-field' => 'category', 'operator' => '=')))), array('formatter' => array(array('field' => 'asset@purchase', 'converter-class' => 'MySQLDateTime', 'parameter' => '%y/%m/%d'), array('field' => 'asset@discard', 'converter-class' => 'MySQLDateTime'))), array('db-class' => 'PDO', 'dsn' => 'pgsql:host=localhost;port=5432;dbname=test_db'), false);
Пример #6
0
<?php

//todo ## Set the valid path to the file 'INTER-Mediator.php'
require_once dirname(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'placelist', 'aggregation-select' => 'DISTINCT f7, f8', 'aggregation-from' => 'postalcode', 'records' => 1000, 'maxrecords' => 1000, 'key' => 'id')), array('credit-including' => 'footer'), array('db-class' => 'PDO'), false);
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('records' => 1, 'paging' => true, 'name' => 'person', 'view' => 'im_sample.person', 'table' => 'im_sample.person', 'key' => 'id', 'query' => array(), 'sort' => array(array('field' => 'id', 'direction' => 'asc')), 'repeat-control' => 'insert delete copy-contact,history', 'sequence' => 'im_sample.person_id_seq'), array('name' => 'contact', 'view' => 'im_sample.contact', 'table' => 'im_sample.contact', 'key' => 'id', 'relation' => array(array('foreign-key' => 'person_id', 'join-field' => 'id', 'operator' => '=')), 'repeat-control' => 'insert delete copy', 'sequence' => 'im_sample.serial'), array('name' => 'contact_way', 'view' => 'im_sample.contact_way', 'table' => 'im_sample.contact_way', 'key' => 'id', 'sequence' => 'im_sample.serial'), array('name' => 'cor_way_kindname', 'view' => 'im_sample.cor_way_kindname', 'table' => 'im_sample.cor_way_kindname', 'key' => 'id', 'relation' => array(array('foreign-key' => 'way_id', 'join-field' => 'way', 'operator' => '=')), 'sequence' => 'im_sample.serial'), array('name' => 'history', 'view' => 'im_sample.history', 'table' => 'im_sample.history', 'key' => 'id', 'relation' => array(array('foreign-key' => 'person_id', 'join-field' => 'id', 'operator' => '=')), 'repeat-control' => 'insert delete', 'sequence' => 'im_sample.serial')), array('formatter' => array(), 'aliases' => array('kindid' => 'cor_way_kindname@kind_id@value', 'kindname' => 'cor_way_kindname@name_kind@innerHTML')), array('db-class' => 'PDO', 'dsn' => 'pgsql:host=localhost;port=5432;dbname=test_db'), false);
Пример #8
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'asset', 'view' => 'asset', 'key' => 'asset_id', 'repeat-control' => 'insert delete', 'records' => 5, 'paging' => true, 'sort' => array(array('field' => 'purchase', 'direction' => 'ASC')), 'default-values' => array(array('field' => 'purchase', 'value' => IM_TODAY)), 'navi-control' => 'master-hide'), array('name' => 'asseteffect', 'view' => 'asset', 'sort' => array(array('field' => 'purchase', 'direction' => 'ASC')), 'query' => array(), 'repeat-control' => 'insert delete', 'records' => 5, 'paging' => true, 'navi-control' => 'master-hide'), array('name' => 'assetdetail', 'view' => 'asset', 'table' => 'asset', 'records' => 1, 'key' => 'asset_id', 'navi-control' => 'detail-top', 'calculation' => array(array("field" => "avglength", "expression" => "average(rent@datelength)"))), array('name' => 'rent', 'key' => 'rent_id', 'sort' => array(array('field' => 'rentdate', 'direction' => 'ASC')), 'relation' => array(array('foreign-key' => 'asset_id', 'join-field' => 'asset_id', 'operator' => '=')), 'repeat-control' => 'insert delete', 'default-values' => array(array('field' => 'rentdate', 'value' => IM_TODAY)), 'calculation' => array(array("field" => "datelength", "expression" => "if(backdate = '', '', date(backdate) - date(rentdate))"))), array('name' => 'staff'), array('name' => 'rentback', 'table' => 'rent', 'key' => 'rent_id', 'query' => array(array('field' => 'backdate', 'operator' => 'IS NULL'))), array('name' => 'category'), array('name' => 'category-in-list', 'view' => 'category', 'relation' => array(array('foreign-key' => 'category_id', 'join-field' => 'category', 'operator' => '=')))), array('formatter' => array()), array('db-class' => 'PDO'), false);
Пример #9
0
<?php

//todo ## Set the valid path to the file 'INTER-Mediator.php'
require_once dirname(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'item', 'table' => 'dummy', 'view' => 'item_master', 'records' => 100000, 'maxrecords' => 100000, 'key' => 'id', 'query' => array(array('field' => 'id', 'value' => 25, 'operator' => '>='), array('field' => 'id', 'value' => 35, 'operator' => '<=')), 'sort' => array(array('field' => 'id', 'direction' => 'asc')), 'calculation' => array(array('field' => 'idone', 'expression' => 'id + 1'))), array('name' => 'customer', 'table' => 'dummy', 'view' => 'customer', 'records' => 100000, 'maxrecords' => 100000, 'key' => 'id', 'query' => array(array('field' => 'id', 'value' => 250, 'operator' => '>='), array('field' => 'id', 'value' => 259, 'operator' => '<=')), 'sort' => array(array('field' => 'id', 'direction' => 'asc')), 'calculation' => array(array('field' => 'idone', 'expression' => 'id + 1'))), array('name' => 'salessummary', 'table' => 'dummy', 'view' => 'saleslog', 'records' => 100000, 'key' => 'id', 'relation' => array(array('foreign-key' => 'item_id', 'join-field' => 'id', 'operator' => '='), array('foreign-key' => 'customer_id', 'join-field' => 'id', 'operator' => '=')), 'calculation' => array(array('field' => 'addone', 'expression' => 'total + 1')))), array('local-context' => array(array('key' => 'pageTitle', 'value' => 'INTER-Mediator'), array('key' => 'copyright', 'value' => 'INTER-Mediator Directive Committee'))), array('db-class' => 'PDO'), false);
Пример #10
0
<?php

/**
 * Created by PhpStorm.
 * User: msyk
 * Date: 2014/04/10
 * Time: 23:38
 */
require_once '../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'surveyinput', 'table' => 'survey', 'key' => 'id', 'post-dismiss-message' => 'ありがとうございました', 'validation' => array(array('field' => 'Q1', 'rule' => "value != ''", 'message' => '何か入力してください', 'notify' => 'inline'))), array('name' => 'surveylist', 'view' => 'survey', 'key' => 'id', 'records' => 10, 'maxrecords' => 10, 'paging' => true, 'sort' => array(array('field' => 'Q2', 'direction' => 'DESC')), 'query' => array())), null, array('db-class' => 'PDO'), false);
Пример #11
0
<?php

//todo ## Set the valid path to the file 'INTER-Mediator.php'
require_once '../../INTER-Mediator.php';
IM_Entry(array(0 => array('name' => 'invoice-all', 'table' => 'invoice', 'view' => 'invoice', 'key' => 'id'), 1 => array('name' => 'invoice', 'table' => 'invoice', 'view' => 'invoice', 'key' => 'id', 'repeat-control' => 'delete insert', 'authentication' => array('all' => array('target' => 'field-user', 'field' => 'authuser')))), array('authentication' => array('storing' => 'session-storage', 'realm' => 'Sample', 'authexpired' => '3600')), array('db-class' => 'FileMaker_FX', 'database' => 'TestDB', 'user' => 'web', 'password' => 'password', 'server' => '10.0.1.21', 'port' => '80', 'protocol' => 'http', 'datatype' => 'fmpro12'), 2);
Пример #12
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'chat', 'records' => 10, 'paging' => true, 'key' => 'id', 'query' => array(), 'sort' => array(array('field' => 'postdt', 'direction' => 'DESC')), 'post-reconstruct' => true, 'repeat-control' => 'insert delete', 'calculation' => array(array('field' => 'calc', 'expression' => "'<special>' + message")), 'validation' => array(array('field' => 'message', 'rule' => 'length(value)>10', 'message' => 'You should write more than 10 characters.', 'notify' => 'end-of-sibling')))), array(), array('db-class' => 'PDO'), 0);
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'postalcode', 'view' => 'im_sample.postalcode', 'records' => 10, 'maxrecords' => 1000, 'paging' => true)), null, array('db-class' => 'PDO', 'dsn' => 'pgsql:host=localhost;port=5432;dbname=test_db'), false);
Пример #14
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('records' => 100000000, 'name' => 'chat', 'key' => 'id', 'sort' => array(array('field' => 'postdt', 'direction' => 'desc')), 'default-values' => array(array('field' => 'postdt', 'value' => date('Y-m-d H:i:s'))), 'post-reconstruct' => true, 'post-dismiss-message' => '送信完了', 'extending-class' => 'MailSending', 'validation' => array(array('field' => 'message', 'rule' => " value !='' ", 'message' => '空欄にしないでください', 'notify' => 'inline')))), array('formatter' => array(array('field' => 'chat@postdt', 'converter-class' => 'FMDateTime'))), array('db-class' => 'FileMaker_FX'), false);
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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 '../../INTER-Mediator.php';
IM_Entry(array(array('records' => 1, 'paging' => true, 'name' => 'person', 'key' => 'id', 'query' => array(), 'sort' => array(array('field' => 'id', 'direction' => 'asc')), 'repeat-control' => 'insert delete', 'authentication' => array('read' => array('user' => array(), 'group' => array("group1", "group2")), 'update' => array('user' => array(), 'group' => array("group2")))), array('name' => 'contact', 'key' => 'id', 'relation' => array(array('foreign-key' => 'person_id', 'join-field' => 'id', 'operator' => '=')), 'repeat-control' => 'insert delete'), array('name' => 'contact_way', 'key' => 'id'), array('name' => 'cor_way_kindname', 'key' => 'id', 'relation' => array(array('foreign-key' => 'way_id', 'join-field' => 'way', 'operator' => '='))), array('name' => 'history', 'key' => 'id', 'relation' => array(array('foreign-key' => 'person_id', 'join-field' => 'id', 'operator' => '=')), 'repeat-control' => 'insert delete', 'authentication' => array('all' => array('user' => array(), 'group' => array(), 'target' => 'table'), 'load' => array('user' => array(), 'group' => array(), 'target' => 'record', 'field' => 'username')))), array('formatter' => array(), 'aliases' => array('kindid' => 'cor_way_kindname@kind_id@value', 'kindname' => 'cor_way_kindname@name_kind@innerHTML'), 'authentication' => array('user' => array('user1'), 'group' => array('group2'), 'privilege' => array(), 'user-table' => 'authuser', 'group-table' => 'authgroup', 'corresponding-table' => 'authcor', 'challenge-table' => 'issuedhash', 'authexpired' => '100000', 'storing' => 'cookie-domainwide')), array('db-class' => 'PDO'), 2);
Пример #16
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('records' => 10, 'name' => 'productlist', 'view' => 'product', 'key' => 'id', 'query' => array(array('field' => 'name', 'value' => '%', 'operator' => 'LIKE')), 'sort' => array(array('field' => 'name', 'direction' => 'ASC'))), array('records' => 1, 'name' => 'productdetail', 'view' => 'product', 'key' => 'id')), array('media-context' => 'productlist', 'formatter' => array(array('field' => 'product@unitprice', 'converter-class' => 'Number', 'parameter' => '0'))), array('db-class' => 'PDO'), false);
Пример #17
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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 '../../INTER-Mediator.php';
IM_Entry(array(array('records' => 1, 'paging' => true, 'name' => 'person_layout', 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'query' => array(), 'sort' => array(array('field' => 'id', 'direction' => 'ascend')), 'authentication' => array('read' => array('group' => array("group1", "group2")), 'update' => array('group' => array("group2")), 'create' => array('group' => array("dummy")), 'delete' => array('group' => array("dummy")))), array('name' => 'contact_to', 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'person_id', 'join-field' => 'id', 'operator' => 'eq'))), array('name' => 'contact_way', 'key' => 'id'), array('name' => 'cor_way_kind', 'key' => 'id', 'relation' => array(array('foreign-key' => 'way_id', 'join-field' => 'way', 'operator' => 'eq'))), array('name' => 'history_to', 'key' => 'id', 'repeat-control' => 'delete insert', 'relation' => array(array('foreign-key' => 'person_id', 'join-field' => 'id', 'operator' => 'eq')))), array('formatter' => array(array('field' => 'contact_to@datetime', 'converter-class' => 'FMDateTime'), array('field' => 'history_to@startdate', 'converter-class' => 'FMDateTime'), array('field' => 'history_to@enddate', 'converter-class' => 'FMDateTime')), 'authentication' => array('authexpired' => '3600', 'email-as-username' => true, 'storing' => 'session-storage', 'realm' => 'Sample_Auth/FMS_definitions')), array('db-class' => 'FileMaker_FX'), 2);
Пример #18
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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 '../../INTER-Mediator.php';
IM_Entry(array(array('records' => 1, 'name' => 'person', 'key' => 'id')), null, array('db-class' => 'FileMaker_FX'), false);
Пример #19
0
<?php

//todo ## Set the valid path to the file 'INTER-Mediator.php'
require_once '../../../../INTER-Mediator/INTER-Mediator.php';
IM_Entry(array(0 => array('name' => 'person_list', 'table' => 'person', 'view' => 'person', 'records' => 10, 'maxrecords' => 100, 'paging' => true, 'key' => 'id', 'repeat-control' => 'insert', 'navi-control' => 'master'), 1 => array('name' => 'person_detail', 'table' => 'person', 'view' => 'person', 'key' => 'id', 'records' => 1, 'maxrecords' => 100, 'navi-control' => 'detail')), array(), array('db-class' => 'PDO', 'user' => 'web', 'password' => 'password'), false);
Пример #20
0
<?php

//todo ## Set the valid path to the file 'INTER-Mediator.php'
require_once dirname(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'placelist', 'table' => 'not_available', 'view' => 'postalcode', 'records' => 1000, 'maxrecords' => 1000, 'key' => 'id')), array('credit-including' => 'footer'), array('db-class' => 'PDO'), false);
Пример #21
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'postalcode', 'records' => 20, 'maxrecords' => 30, 'paging' => true)), null, array('db-class' => 'FileMaker_FX'), false);
Пример #22
0
<?php

/*
* INTER-Mediator Ver.@@@@2@@@@ Released @@@@1@@@@
*
*   by Masayuki Nii  msyk@msyk.net Copyright (c) 2013 Masayuki Nii, All rights reserved.
*
*   This project started at the end of 2009.
*   INTER-Mediator is supplied under MIT License.
*/
require_once '../INTER-Mediator/INTER-Mediator.php';
IM_Entry(array(array('name' => 'contexts', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-top-insert'), array('name' => 'relation', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'query', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'sort', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'default-values', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'validation', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'script', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'global', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'file-upload', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'options', 'records' => 100000, 'key' => 'id'), array('name' => 'aliases', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'formatter', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'browser-compatibility', 'records' => 100000, 'key' => 'id', 'repeat-control' => 'confirm-delete confirm-insert', 'relation' => array(array('foreign-key' => 'context_id', 'join-field' => 'id', 'operator' => '='))), array('name' => 'dbsettings', 'records' => 100000, 'key' => 'id'), array('name' => 'debug', 'records' => 100000, 'key' => 'id')), array('formatter' => array()), array('db-class' => 'DefEditor'), false);
Пример #23
0
<?php

/*
* INTER-Mediator Ver.@@@@2@@@@ Released @@@@1@@@@
*
*   by Masayuki Nii  msyk@msyk.net Copyright (c) 2013 Masayuki Nii, All rights reserved.
*
*   This project started at the end of 2009.
*   INTER-Mediator is supplied under MIT License.
*/
require_once '../INTER-Mediator/INTER-Mediator.php';
IM_Entry(array(array('name' => 'pagefile', 'records' => 1, 'key' => 'id')), array('formatter' => array()), array('db-class' => 'PageEditor'), false);
Пример #24
0
<?php

/**
 * Created by PhpStorm.
 * User: msyk
 * Date: 2013/10/16
 * Time: 2:25
 */
/*
 *
 *  '';
 */
require_once 'rsrcs/INTER-Mediator/INTER-Mediator.php';
IM_Entry(array(array('records' => 1, 'name' => 'loginuser', 'view' => 'authuser', 'table' => 'dummy', 'key' => 'id', 'authentication' => array('load' => array('group' => array('admin', 'examinee'), 'target' => 'field-user', 'field' => 'username'))), array('records' => 1, 'name' => 'progress', 'key' => 'id', 'authentication' => array('load' => array('group' => array('admin', 'examinee'), 'target' => 'field-user', 'field' => 'username'), 'new' => array('group' => array('admin', 'examinee'), 'target' => 'field-user', 'field' => 'username'), 'update' => array('group' => array('dummy')), 'delete' => array('group' => array('dummy'))), 'post-dismiss-message' => 'おつかれさまでした。数秒後に次のページに進みます。', 'post-move-url' => 'routing.html'), array('records' => 1, 'name' => 'question', 'view' => 'answer', 'table' => 'answer', 'key' => 'id', 'authentication' => array('load' => array('group' => array('admin', 'examinee'), 'target' => 'field-user', 'field' => 'username'), 'update' => array('group' => array('admin', 'examinee'), 'target' => 'field-user', 'field' => 'username'), 'delete' => array('group' => array('dummy')), 'new' => array('group' => array('dummy'))))), array('formatter' => array(), 'aliases' => array(), 'authentication' => array('authexpired' => '100000', 'storing' => 'cookie-domainwide', 'realm' => 'IM Survey')), array('db-class' => 'PDO'), false);
<?php

//todo ## Set the valid path to the file 'INTER-Mediator.php'
require_once 'INTER-Mediator.php';
IM_Entry(array(array('name' => 'postalcode', 'table' => 'postalcode', 'view' => 'postalcode', 'records' => 10, 'maxrecords' => 100, 'paging' => true, 'key' => 'id', 'query' => array(array('field' => 'f3', 'value' => '1%', 'operator' => 'LIKE')), 'sort' => array(array('field' => 'f3', 'direction' => 'ASC')), 'repeat-control' => 'confirm-insert confirm-delete')), array(), array('db-class' => 'PDO'), 2);
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'invoice', 'records' => 1, 'paging' => true, 'key' => 'id', 'query' => array(), 'sort' => array(array('field' => 'id', 'direction' => 'ASC')), 'repeat-control' => 'insert delete', 'calculation' => array(array('field' => 'total_calc', 'expression' => 'format(sum(item@amount_calc) * (1 + _@taxRate ))'))), array('name' => 'item', 'key' => 'id', 'relation' => array(array('foreign-key' => 'invoice_id', 'join-field' => 'id', 'operator' => '=')), 'repeat-control' => 'insert delete', 'default-values' => array(array('field' => 'product_id', 'value' => 1)), 'validation' => array(array('field' => 'qty', 'rule' => 'value>=0 && value < 100', 'message' => 'Quantity should be between 1..99.', 'notify' => 'inline'), array('field' => 'unitprice', 'rule' => 'value>=0 && value<10000', 'message' => 'Unit price should be between 1.. 9999.', 'notify' => 'end-of-sibling')), 'calculation' => array(array('field' => 'amount_calc', 'expression' => "format(qty * if ( unitprice = '', product@unitprice, unitprice ))"), array('field' => 'qty_color', 'expression' => "if (qty >= 10, 'red', 'black')"))), array('name' => 'product', 'key' => 'id', 'relation' => array(array('foreign-key' => 'id', 'join-field' => 'product_id', 'operator' => '=')))), array('formatter' => array(array('field' => 'item@qty', 'converter-class' => 'NullZeroString', 'parameter' => '0'), array('field' => 'item@unitprice', 'converter-class' => 'NullZeroString', 'parameter' => '0'), array('field' => 'product@unitprice', 'converter-class' => 'Number', 'parameter' => '2'))), array('db-class' => 'PDO', 'dsn' => 'pgsql:host=localhost;port=5432;dbname=test_db'), false);
Пример #27
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('records' => 10, 'name' => 'productlist', 'view' => 'product', 'key' => 'id', 'query' => array(array('field' => 'name', 'value' => '*', 'operator' => 'cn')), 'sort' => array(array('field' => 'name', 'direction' => 'ascend')), 'post-repeater' => 'move'), array('records' => 1, 'name' => 'productdetail', 'view' => 'product', 'key' => 'id', 'query' => array(array('field' => 'name', 'value' => '*', 'operator' => 'cn')), 'sort' => array(array('field' => 'name', 'direction' => 'ascend')))), array('formatter' => array(array('field' => 'product@unitprice', 'converter-class' => 'Number', 'parameter' => '0'))), array('db-class' => 'FileMaker_FX'), false);
Пример #28
0
<?php

//todo ## Set the valid path to the file 'INTER-Mediator.php'
require_once dirname(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('name' => 'placelist', 'table' => 'not_available', 'view' => 'postalcode', 'records' => 1000, 'maxrecords' => 1000, 'key' => 'id', 'navi-control' => 'master-hide-touch'), array('name' => 'placedetail', 'table' => 'not_available', 'view' => 'postalcode', 'records' => 1, 'maxrecords' => 1, 'key' => 'id', 'navi-control' => 'detail')), array('credit-including' => 'footer'), array('db-class' => 'FileMaker_FX'), 2);
Пример #29
0
<?php

/**
 * INTER-Mediator
 * Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
 * This project started at the end of 2009 by Masayuki Nii msyk@msyk.net.
 *
 * 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(__FILE__) . '/../../INTER-Mediator.php';
IM_Entry(array(array('records' => 1, 'paging' => true, 'name' => 'person_layout', 'repeat-control' => 'confirm-delete confirm-insert', 'query' => array(), 'sort' => array(array('field' => 'id', 'direction' => 'ascend'))), array('name' => 'contact_to', 'view' => 'person_layout', 'repeat-control' => 'confirm-delete insert', 'relation' => array(array('foreign-key' => 'person_id', 'join-field' => 'id', 'operator' => 'eq', 'portal' => true))), array('name' => 'contact_way', 'key' => 'id'), array('name' => 'cor_way_kind', 'key' => 'id', 'relation' => array(array('foreign-key' => 'way_id', 'join-field' => 'contact_to::way', 'operator' => 'eq'))), array('name' => 'history_to', 'key' => 'id', 'repeat-control' => 'delete insert', 'relation' => array(array('foreign-key' => 'person_id', 'join-field' => 'id', 'operator' => 'eq')))), array('formatter' => array(array('field' => 'history_to@startdate', 'converter-class' => 'FMDateTime'), array('field' => 'contact_to@contact_to::datetime', 'converter-class' => 'FMDateTime'), array('field' => 'history_to@enddate', 'converter-class' => 'FMDateTime'))), array('db-class' => 'FileMaker_FX'), false);
Пример #30
0
<?php

/**
 * Created by JetBrains PhpStorm.
 * User: msyk
 * Date: 12/06/09
 * Time: 8:29
 * To change this template use File | Settings | File Templates.
 */
require_once '../../INTER-Mediator.php';
// Set the valid path to INTER-Mediator.php
IM_Entry(array(), array(), array("db-class" => "PDO"), false);