]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/order_functions.php
Added script template for cron jobs, fixed some checks on CSS/HTML mode
[mailer.git] / inc / libs / order_functions.php
index 5aa1383fe84093a76929087071203c8dcc6b61d7..27f3bbf7e61dac917a0a7cca691bea869297ab25 100644 (file)
@@ -72,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');
@@ -84,7 +84,7 @@ function getOrderMultiPage () {
 
 // 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');
@@ -94,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]
 ?>