]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/order_functions.php
Extension ext-network continued:
[mailer.git] / inc / libs / order_functions.php
index ef7549cf848bb52a34fe0232f7fa8d59ee9580a7..f6da85ea7949b5bf28be1dc881b452216ca71d88 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -48,11 +48,13 @@ function addOrderSelectionOptions ($default) {
        foreach ($LIST as $item) {
                // Defaul selection
                $selected = '';
-               if ($item == $default) $selected = ' selected="selected"';
+               if ($item == $default) {
+                       $selected = ' selected="selected"';
+               } // END - if
 
-               // 'ref_clicks' needs to be rewritten to 'referal_clicks'
+               // 'ref_clicks' needs to be rewritten to 'referral_clicks'
                if ($item == 'ref_clicks') {
-                       $item = 'referal_clicks';
+                       $item = 'referral_clicks';
                } // END - if
 
                // Add option line
@@ -63,5 +65,33 @@ function addOrderSelectionOptions ($default) {
        return $OUT;
 }
 
+//-----------------------------------------------------------------------------
+//                Wrapper functions for configuration entries
+//-----------------------------------------------------------------------------
+
+// Getter for 'order_multi_page' config entry
+function getOrderMultiPage () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('order_multi_page');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Determines wether 'order_multi_page' is set to 'Y'
+function isOrderMultiPageEnabled () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getOrderMultiPage() == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>