@@ -305,35 +305,27 @@ public function getTableDefStandIn(string $db, string $view, array $aliases = []
305305 /**
306306 * Returns $table's CREATE definition
307307 *
308- * @param string $db the database name
309- * @param string $table the table name
310- * @param string $errorUrl the url to go back in case of error
311- * @param bool $doRelation whether to include relation comments
312- * @param bool $doComments whether to include the pmadb-style column
313- * comments as comments in the structure;
314- * this is deprecated but the parameter is
315- * left here because /export calls
316- * $this->exportStructure() also for other
317- * export types which use this parameter
318- * @param bool $doMime whether to include mime comments
319- * @param bool $showDates whether to include creation/update/check dates
320- * @param bool $addSemicolon whether to add semicolon and end-of-line
321- * at the end
322- * @param bool $view whether we're handling a view
323- * @param mixed[] $aliases Aliases of db/table/columns
308+ * @param string $db the database name
309+ * @param string $table the table name
310+ * @param bool $doRelation whether to include relation comments
311+ * @param bool $doComments whether to include the pmadb-style column
312+ * comments as comments in the structure;
313+ * this is deprecated but the parameter is
314+ * left here because /export calls
315+ * $this->exportStructure() also for other
316+ * export types which use this parameter
317+ * @param bool $doMime whether to include mime comments
318+ * at the end
319+ * @param mixed[] $aliases Aliases of db/table/columns
324320 *
325321 * @return string resulting schema
326322 */
327323 public function getTableDef (
328324 string $ db ,
329325 string $ table ,
330- string $ errorUrl ,
331326 bool $ doRelation ,
332327 bool $ doComments ,
333328 bool $ doMime ,
334- bool $ showDates = false ,
335- bool $ addSemicolon = true ,
336- bool $ view = false ,
337329 array $ aliases = [],
338330 ): string {
339331 $ relationParameters = $ this ->relation ->getRelationParameters ();
@@ -503,18 +495,7 @@ public function exportStructure(
503495 case 'create_table ' :
504496 $ dump .= '== ' . __ ('Table structure for table ' ) . ' '
505497 . $ tableAlias . "\n\n" ;
506- $ dump .= $ this ->getTableDef (
507- $ db ,
508- $ table ,
509- $ errorUrl ,
510- $ doRelation ,
511- $ doComments ,
512- $ doMime ,
513- $ dates ,
514- true ,
515- false ,
516- $ aliases ,
517- );
498+ $ dump .= $ this ->getTableDef ($ db , $ table , $ doRelation , $ doComments , $ doMime , $ aliases );
518499 break ;
519500 case 'triggers ' :
520501 $ triggers = Triggers::getDetails ($ GLOBALS ['dbi ' ], $ db , $ table );
@@ -526,18 +507,7 @@ public function exportStructure(
526507 break ;
527508 case 'create_view ' :
528509 $ dump .= '== ' . __ ('Structure for view ' ) . ' ' . $ tableAlias . "\n\n" ;
529- $ dump .= $ this ->getTableDef (
530- $ db ,
531- $ table ,
532- $ errorUrl ,
533- $ doRelation ,
534- $ doComments ,
535- $ doMime ,
536- $ dates ,
537- true ,
538- true ,
539- $ aliases ,
540- );
510+ $ dump .= $ this ->getTableDef ($ db , $ table , $ doRelation , $ doComments , $ doMime , $ aliases );
541511 break ;
542512 case 'stand_in ' :
543513 $ dump .= '== ' . __ ('Stand-in structure for view ' )
0 commit comments