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


PHP PMA_transformEditedValues函數代碼示例

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


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

示例1: array

         }
     }
     // end of loop for each relation cell
 }
 if (isset($_REQUEST['do_transformations']) && $_REQUEST['do_transformations'] == true) {
     $edited_values = array();
     parse_str($_REQUEST['transform_fields_list'], $edited_values);
     if (!isset($extra_data)) {
         $extra_data = array();
     }
     $transformation_types = array("input_transformation", "transformation");
     foreach ($mime_map as $transformation) {
         $column_name = $transformation['column_name'];
         foreach ($transformation_types as $type) {
             $file = PMA_securePath($transformation[$type]);
             $extra_data = PMA_transformEditedValues($db, $table, $transformation, $edited_values, $file, $column_name, $extra_data, $type);
         }
     }
     // end of loop for each $mime_map
 }
 // Need to check the inline edited value can be truncated by MySQL
 // without informing while saving
 $column_name = $_REQUEST['fields_name']['multi_edit'][0][0];
 PMA_verifyWhetherValueCanBeTruncatedAndAppendExtraData($db, $table, $column_name, $extra_data);
 /**Get the total row count of the table*/
 $_table = new PMA_Table($_REQUEST['table'], $_REQUEST['db']);
 $extra_data['row_count'] = $_table->countRecords();
 $extra_data['sql_query'] = PMA_Util::getMessage($message, $GLOBALS['display_query']);
 $response = PMA_Response::getInstance();
 $response->isSuccess($message->isSuccess());
 $response->addJSON('message', $message);
開發者ID:altesien,項目名稱:FinalProject,代碼行數:31,代碼來源:tbl_replace.php

示例2: testTransformEditedValues

 /**
  * Test for PMA_transformEditedValues
  *
  * @return void
  */
 public function testTransformEditedValues()
 {
     $edited_values = array(array('c' => 'cname'));
     $GLOBALS['cfg']['ServerDefault'] = 1;
     $_REQUEST['where_clause'] = 1;
     $transformation = array('transformation_options' => "'','option ,, quoted',abd");
     $result = PMA_transformEditedValues('db', 'table', $transformation, $edited_values, 'Text_Plain_Preappend.class.php', 'c', array('a' => 'b'));
     $this->assertEquals(array('a' => 'b', 'transformations' => array("cnameoption ,, quoted")), $result);
 }
開發者ID:kfjihailong,項目名稱:phpMyAdmin,代碼行數:14,代碼來源:PMA_insert_edit_test.php


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