当前位置: 首页>>代码示例>>PHP>>正文


PHP IM_Entry函数代码示例

本文整理汇总了PHP中IM_Entry函数的典型用法代码示例。如果您正苦于以下问题:PHP IM_Entry函数的具体用法?PHP IM_Entry怎么用?PHP IM_Entry使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了IM_Entry函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:include_FileMaker.php

示例2: IM_Entry

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator_WebSite,代码行数:10,代码来源:result.php

示例3: IM_Entry

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:demo2.php

示例4: IM_Entry

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:11,代码来源:MySQL_contexts.php

示例5: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:contexts_PostgreSQL.php

示例6: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:5,代码来源:twolayer_MySQL.php

示例7: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:include_PostgreSQL.php

示例8: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:asset_contexts.php

示例9: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:5,代码来源:crosstable.php

示例10: IM_Entry

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:10,代码来源:survey_def.php

示例11: IM_Entry

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:5,代码来源:def25.php

示例12: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:postonlytest.php

示例13: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:JustPost_FMS.php

示例14: IM_Entry

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:include_MySQL_Auth.php

示例15: dirname

<?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);
开发者ID:haya-sann,项目名称:INTER-Mediator,代码行数:17,代码来源:contexts_MySQL.php


注:本文中的IM_Entry函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。