From 1a6a73adbc7c6d037b4f45e27f1ef992fe452f8d Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 28 Jul 2009 11:18:08 +0000 Subject: [PATCH] Rename selectExtra to selectEmail git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@924 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/adminer.inc.php | 16 ++++++++-------- adminer/select.inc.php | 4 ++-- editor/include/adminer.inc.php | 28 ++++++++++++++-------------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index f07cb2c8..4cde3c0d 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -236,6 +236,13 @@ class Adminer { echo "\n"; } + /** Print extra text in the end of a select form + * @param array fields holding e-mails + * @return null + */ + function selectEmailPrint($emailFields) { + } + /** Process columns box in select * @param array selectable columns * @return array (array(select_expressions), array(group_expressions)) @@ -322,18 +329,11 @@ class Adminer { return (isset($_GET["text_length"]) ? $_GET["text_length"] : "100"); } - /** Print extra text in the end of a select form - * @param array fields holding e-mails - * @return null - */ - function selectExtraPrint($emailFields) { - } - /** Process extras in select form * @param array AND conditions * @return bool true if processed, false to process other parts of form */ - function selectExtraProcess($where) { + function selectEmailProcess($where) { return false; } diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 166545c8..e503886e 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -54,7 +54,7 @@ if ($_POST && !$error) { } exit; } - if (!$adminer->selectExtraProcess($where)) { + if (!$adminer->selectEmailProcess($where)) { if (!$_POST["import"]) { // edit $result = true; $affected = 0; @@ -272,7 +272,7 @@ if (!$columns) { } echo "
" . lang('CSV Import') . "
\n"; - $adminer->selectExtraPrint(array_filter($email_fields, 'strlen')); + $adminer->selectEmailPrint(array_filter($email_fields, 'strlen')); echo "\n"; } diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index 9d8db8a5..483ff1c1 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -183,6 +183,19 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5 echo "\n"; } + function selectEmailPrint($emailFields) { + global $confirm; + if ($emailFields) { + echo '
' . lang('E-mail') . "
\n"; + } + } + function selectColumnsProcess($columns, $indexes) { return array(array(), array()); } @@ -230,20 +243,7 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5 return "100"; } - function selectExtraPrint($emailFields) { - global $confirm; - if ($emailFields) { - echo '
' . lang('E-mail') . "
\n"; - } - } - - function selectExtraProcess($where) { + function selectEmailProcess($where) { global $dbh; if ($_POST["email"]) { $sent = 0;