PMA\libraries\plugins\schema\ExportRelationSchema::dieSchema PHP Method

dieSchema() public static method

Displays an error message
public static dieSchema ( integer $pageNumber, string $type = '', string $error_message = '' ) : void
$pageNumber integer ID of the chosen page
$type string Schema Type
$error_message string The error message
return void
    public static function dieSchema($pageNumber, $type = '', $error_message = '')
    {
        echo "<p><strong>", __("SCHEMA ERROR: "), $type, "</strong></p>", "\n";
        if (!empty($error_message)) {
            $error_message = htmlspecialchars($error_message);
        }
        echo '<p>', "\n";
        echo '    ', $error_message, "\n";
        echo '</p>', "\n";
        echo '<a href="db_designer.php', URL::getCommon(array('db' => $GLOBALS['db'])), '&page=' . htmlspecialchars($pageNumber), '">', __('Back'), '</a>';
        echo "\n";
        exit;
    }

Usage Example

コード例 #1
0
ファイル: TableStatsEps.php プロジェクト: netroby/phpmyadmin
 /**
  * Displays an error when the table cannot be found.
  *
  * @return void
  */
 protected function showMissingTableError()
 {
     ExportRelationSchema::dieSchema($this->pageNumber, "EPS", sprintf(__('The %s table doesn\'t exist!'), $this->tableName));
 }