diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-04-01 07:34:17 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-04-01 07:34:17 +0300 |
commit | c73e72e7ca39304bbcd54399cb59c6fc92199d67 (patch) | |
tree | 39ce656994fa855a8702791654ca0aa2912020c4 /tbl_replace.php | |
parent | 541924c120b8a52bcf8759443baa56731e470f4f (diff) |
Refactor PhpMyAdmin\Transformations static methods
Replaces static methods with instance methods.
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'tbl_replace.php')
-rw-r--r-- | tbl_replace.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tbl_replace.php b/tbl_replace.php index 4c40369043..30d47ee9b7 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -48,7 +48,7 @@ $scripts->addFile('indexes.js'); $scripts->addFile('gis_data_editor.js'); $relation = new Relation(); - +$transformations = new Transformations(); $insertEdit = new InsertEdit($GLOBALS['dbi']); // check whether insert row mode, if so include tbl_change.php @@ -133,7 +133,7 @@ $gis_from_wkb_functions = array( ); //if some posted fields need to be transformed. -$mime_map = Transformations::getMIME($GLOBALS['db'], $GLOBALS['table']); +$mime_map = $transformations->getMime($GLOBALS['db'], $GLOBALS['table']); if ($mime_map === false) { $mime_map = array(); } @@ -225,10 +225,10 @@ foreach ($loop_array as $rownumber => $where_clause) { . $mime_map[$column_name]['input_transformation']; if (is_file($filename)) { include_once $filename; - $classname = Transformations::getClassName($filename); + $classname = $transformations->getClassName($filename); /** @var IOTransformationsPlugin $transformation_plugin */ $transformation_plugin = new $classname(); - $transformation_options = Transformations::getOptions( + $transformation_options = $transformations->getOptions( $mime_map[$column_name]['input_transformation_options'] ); $current_value = $transformation_plugin->applyTransformation( |