]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/order_functions.php
Extension ext-network continued:
[mailer.git] / inc / libs / order_functions.php
index f6da85ea7949b5bf28be1dc881b452216ca71d88..27f3bbf7e61dac917a0a7cca691bea869297ab25 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -43,6 +43,7 @@ if (!defined('__SECURITY')) {
 // Generates a selection list for mail order
 function addOrderSelectionOptions ($default) {
        // Currenty the list is hardcoded...
+       // @TODO Move this array into a filter
        $LIST = array('userid', 'zip', 'country', 'email', 'birth_year', 'last_online', 'ref_clicks', 'total_logins', 'mail_orders');
        $OUT = '';
        foreach ($LIST as $item) {
@@ -58,7 +59,7 @@ function addOrderSelectionOptions ($default) {
                } // END - if
 
                // Add option line
-               $OUT .= '<option value="' . $item . '"' . $selected . '>{--ADMIN_ORDER_SELECT_COLUMN_' . strtoupper($item) . '--}</option>';
+               $OUT .= '<option value="' . $item . '"' . $selected . '>{--ADMIN_CONFIG_ORDER_SELECT_COLUMN_' . strtoupper($item) . '--}</option>';
        } // END - foreach
 
        // Return the output
@@ -71,7 +72,7 @@ function addOrderSelectionOptions ($default) {
 
 // Getter for 'order_multi_page' config entry
 function getOrderMultiPage () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = getConfig('order_multi_page');
@@ -81,9 +82,9 @@ function getOrderMultiPage () {
        return $GLOBALS[__FUNCTION__];
 }
 
-// Determines wether 'order_multi_page' is set to 'Y'
+// Determines whether 'order_multi_page' is set to 'Y'
 function isOrderMultiPageEnabled () {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
                $GLOBALS[__FUNCTION__] = (getOrderMultiPage() == 'Y');
@@ -93,5 +94,29 @@ function isOrderMultiPageEnabled () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Getter for 'order_mode' config entry
+function getOrderMode () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('order_mode');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'order_select' config entry
+function getOrderSelect () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('order_select');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>