$notNull = true; foreach ($idx->getColumns() as $column) { if ($column->getNull()) { $notNull = false; break; } } if ($notNull) { $hideOrderTable = true; break; } } } } if (!$hideOrderTable) { $response->addHTML(PMA_getHtmlForOrderTheTable($columns)); } /** * Move table */ $response->addHTML(PMA_getHtmlForMoveTable()); if (mb_strstr($show_comment, '; InnoDB free') === false) { if (mb_strstr($show_comment, 'InnoDB free') === false) { // only user entered comment $comment = $show_comment; } else { // here we have just InnoDB generated part $comment = ''; } } else { // remove InnoDB comment from end, just the minimal part (*? is non greedy)
/** * Test for PMA_getHtmlForOrderTheTable * * @return void */ public function testGetHtmlForOrderTheTable() { $this->assertRegExp('/.*tbl_operations.php(.|[\\n])*Alter table order by([\\n]|.)*order_order.*/m', PMA_getHtmlForOrderTheTable(array(array('Field' => "column1"), array('Field' => "column2")))); }