本文整理汇总了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);
示例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);
}