當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PMA_getGotoInclude函數代碼示例

本文整理匯總了PHP中PMA_getGotoInclude函數的典型用法代碼示例。如果您正苦於以下問題:PHP PMA_getGotoInclude函數的具體用法?PHP PMA_getGotoInclude怎麽用?PHP PMA_getGotoInclude使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了PMA_getGotoInclude函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: PMA_isInsertRow

PMA_isInsertRow();
$after_insert_actions = array('new_insert', 'same_insert', 'edit_next');
if (isset($_REQUEST['after_insert']) && in_array($_REQUEST['after_insert'], $after_insert_actions)) {
    $url_params['after_insert'] = $_REQUEST['after_insert'];
    if (isset($_REQUEST['where_clause'])) {
        foreach ($_REQUEST['where_clause'] as $one_where_clause) {
            if ($_REQUEST['after_insert'] == 'same_insert') {
                $url_params['where_clause'][] = $one_where_clause;
            } elseif ($_REQUEST['after_insert'] == 'edit_next') {
                PMA_setSessionForEditNext($one_where_clause);
            }
        }
    }
}
//get $goto_include for different cases
$goto_include = PMA_getGotoInclude($goto_include);
// Defines the url to return in case of failure of the query
$err_url = PMA_getErrorUrl($url_params);
/**
 * Prepares the update/insert of a row
 */
list($loop_array, $using_key, $is_insert, $is_insertignore) = PMA_getParamsForUpdateOrInsert();
$query = array();
$value_sets = array();
$func_no_param = array('CONNECTION_ID', 'CURRENT_USER', 'CURDATE', 'CURTIME', 'CURRENT_DATE', 'CURRENT_TIME', 'DATABASE', 'LAST_INSERT_ID', 'NOW', 'PI', 'RAND', 'SYSDATE', 'UNIX_TIMESTAMP', 'USER', 'UTC_DATE', 'UTC_TIME', 'UTC_TIMESTAMP', 'UUID', 'UUID_SHORT', 'VERSION');
$func_optional_param = array('RAND', 'UNIX_TIMESTAMP');
$gis_from_text_functions = array('GeomFromText', 'GeomCollFromText', 'LineFromText', 'MLineFromText', 'PointFromText', 'MPointFromText', 'PolyFromText', 'MPolyFromText');
$gis_from_wkb_functions = array('GeomFromWKB', 'GeomCollFromWKB', 'LineFromWKB', 'MLineFromWKB', 'PointFromWKB', 'MPointFromWKB', 'PolyFromWKB', 'MPolyFromWKB');
// to create an object of PMA_File class
require_once './libraries/File.class.php';
//if some posted fields need to be transformed.
開發者ID:altesien,項目名稱:FinalProject,代碼行數:31,代碼來源:tbl_replace.php

示例2: testGetGotoInclude

 /**
  * Test for PMA_getGotoInclude
  *
  * @return void
  */
 public function testGetGotoInclude()
 {
     $GLOBALS['goto'] = '123.php';
     $GLOBALS['table'] = '';
     $this->assertEquals('db_sql.php', PMA_getGotoInclude('index'));
     $GLOBALS['table'] = 'tbl';
     $this->assertEquals('tbl_sql.php', PMA_getGotoInclude('index'));
     $GLOBALS['goto'] = 'db_sql.php';
     $this->assertEquals('db_sql.php', PMA_getGotoInclude('index'));
     $this->assertEquals('', $GLOBALS['table']);
     $_REQUEST['after_insert'] = 'new_insert';
     $this->assertEquals('tbl_change.php', PMA_getGotoInclude('index'));
 }
開發者ID:kfjihailong,項目名稱:phpMyAdmin,代碼行數:18,代碼來源:PMA_insert_edit_test.php


注:本文中的PMA_getGotoInclude函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。