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


PHP PMA_makeConsistentWithList函數代碼示例

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


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

示例1: PMA_getHtmlShowCreate

             $show_create = PMA_getHtmlShowCreate($GLOBALS['db'], $selected);
             // Send response to client.
             $response = PMA_Response::getInstance();
             $response->addJSON('message', $show_create);
             exit;
         case 'sync_unique_columns_central_list':
             include_once 'libraries/central_columns.lib.php';
             $centralColsError = PMA_syncUniqueColumns($selected);
             break;
         case 'delete_unique_columns_central_list':
             include_once 'libraries/central_columns.lib.php';
             $centralColsError = PMA_deleteColumnsFromList($selected);
             break;
         case 'make_consistent_with_central_list':
             include_once 'libraries/central_columns.lib.php';
             $centralColsError = PMA_makeConsistentWithList($GLOBALS['db'], $selected);
             break;
     }
     // end switch
 } elseif (isset($selected_fld) && !empty($selected_fld)) {
     // coming from table structure view - do something with
     // selected columns
     $selected = $selected_fld;
     list($what_ret, $query_type_ret, $is_unset_submit_mult, $mult_btn_ret, $centralColsError) = PMA_getDataForSubmitMult($submit_mult, $GLOBALS['db'], $table, $selected, $action);
     //update the existing variables
     if (isset($what_ret)) {
         $what = $what_ret;
     }
     if (isset($query_type_ret)) {
         $query_type = $query_type_ret;
     }
開發者ID:BrunoChauvet,項目名稱:phpmyadmin,代碼行數:31,代碼來源:mult_submits.inc.php

示例2: testPMAMakeConsistentWithList

 /**
  * Test for PMA_makeConsistentWithList
  *
  * @return void
  */
 public function testPMAMakeConsistentWithList()
 {
     $GLOBALS['dbi']->expects($this->any())->method('fetchResult')->will($this->returnValue($this->_columnData));
     $GLOBALS['dbi']->expects($this->any())->method('fetchValue')->will($this->returnValue('PMA_table=CREATE table `PMA_table` (id integer)'));
     $this->assertTrue(PMA_makeConsistentWithList("phpmyadmin", array('PMA_table')));
 }
開發者ID:nobodypb,項目名稱:phpmyadmin,代碼行數:11,代碼來源:PMA_central_columns_test.php

示例3: testPMAMakeConsistentWithList

 /**
  * Test for PMA_makeConsistentWithList
  *
  * @return void
  */
 public function testPMAMakeConsistentWithList()
 {
     $dbi = $GLOBALS['dbi'];
     $dbitmp = $this->getMockBuilder('PMA_DatabaseInterface')->disableOriginalConstructor()->getMock();
     $GLOBALS['dbi'] = $dbitmp;
     $dbitmp->expects($this->any())->method('selectDb')->will($this->returnValue(true));
     $dbitmp->expects($this->any())->method('getColumnNames')->will($this->returnValue(array("id", "col1", "col2")));
     $dbitmp->expects($this->any())->method('tryQuery')->will($this->returnValue(true));
     $dbitmp->expects($this->any())->method('fetchResult')->will($this->returnValue(array(array('col_name' => "id", "col_type" => 'integer', 'col_length' => 0, 'col_isNull' => 0, 'col_extra' => '', 'col_default' => 1), array('col_name' => "col1", 'col_type' => 'varchar', 'col_length' => 100, 'col_isNull' => 1, 'col_extra' => '', 'col_default' => 1), array('col_name' => "col2", 'col_type' => 'DATETIME', 'col_length' => 0, 'col_isNull' => 1, 'col_extra' => '', 'col_default' => 'CURRENT_TIMESTAMP'))));
     $dbitmp->expects($this->any())->method('fetchValue')->will($this->returnValue('PMA_table=CREATE table `PMA_table` (id integer)'));
     $this->assertTrue(PMA_makeConsistentWithList("phpmyadmin", array('PMA_table')));
     $GLOBALS['dbi'] = $dbi;
 }
開發者ID:FilipeRamosFernandes,項目名稱:phpmyadmin,代碼行數:18,代碼來源:PMA_central_columns_test.php


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