Skip to content

Commit

Permalink
Remove old relational schema edit/export page and related code
Browse files Browse the repository at this point in the history
Signed-off-by: Bimal Yashodha <[email protected]>
  • Loading branch information
kb-yashodha committed Jul 1, 2014
1 parent b092ad5 commit adf0d2e
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 1,389 deletions.
5 changes: 0 additions & 5 deletions db_operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,6 @@
false,
PMA_DatabaseInterface::QUERY_STORE
);

/*
* Export Relational Schema View
*/
$response->addHTML(PMA_getHtmlForExportRelationalSchemaView($url_query));
} // end if

?>
3 changes: 1 addition & 2 deletions libraries/designer.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ function PMA_getHtmlForSchemaExport($db, $page)
. '</select>'
. '<label>' . __('Select Export Relational Type') . '</label><br />';

$htmlString .= '<input type="hidden" name="do" value="process_export" />'
. '<input type="hidden" name="chpage" value="' . htmlspecialchars($page) . '" />'
$htmlString .= '<input type="hidden" name="chpage" value="' . htmlspecialchars($page) . '" />'
. '<input type="checkbox" name="show_grid" id="show_grid_opt" />'
. '<label for="show_grid_opt">' . __('Show grid') . '</label><br />'
. '<input type="checkbox" name="show_color"'
Expand Down
23 changes: 0 additions & 23 deletions libraries/operations.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,29 +258,6 @@ function PMA_getHtmlForChangeDatabaseCharset($db, $table)
return $html_output;
}

/**
* Get HTML snippet for export relational schema view
*
* @param string $url_query Query string for link
*
* @return string $html_output
*/
function PMA_getHtmlForExportRelationalSchemaView($url_query)
{
$html_output = '<div class="operations_full_width">'
. '<fieldset><a href="schema_edit.php?' . $url_query . '">';
if (PMA_Util::showIcons('ActionLinksMode')) {
$html_output .= PMA_Util::getImage(
'b_edit.png'
);
}
$html_output .= __('Edit or export relational schema')
. '</a></fieldset>'
. '</div>';

return $html_output;
}

/**
* Run the Procedure definitions and function definitions
*
Expand Down
16 changes: 8 additions & 8 deletions libraries/pmd_common.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,20 +361,20 @@ function PMA_getFirstPage($db)
* Creates a new page and returns its auto-incrementing id
*
* @param string $pageName name of the page
* @param string $db name of the database
*
* @return int|null
*/
function PMA_createNewPage($pageName)
function PMA_createNewPage($pageName, $db)
{
$cfgRelation = PMA_getRelationsParam();
if ($cfgRelation['pdfwork']) {
$_POST['newpage'] = $pageName;
// temporarlily using schema code for creating a page
include_once 'libraries/schema/User_Schema.class.php';
$user_schema = new PMA_User_Schema();
$user_schema->setAction("createpage");
$user_schema->processUserChoice();
return $user_schema->pageNumber;
$pageNumber = PMA_REL_createPage(
$pageName,
$cfgRelation,
$db
);
return $pageNumber;
}
return null;
}
Expand Down
Loading

0 comments on commit adf0d2e

Please sign in to comment.