More rewrites to configuration:
[mailer.git] / inc / libs / order_functions.php
index 27f3bbf7e61dac917a0a7cca691bea869297ab25..cbdff252a2187034bd4a6e9f7cb123f53c227927 100644 (file)
@@ -94,6 +94,42 @@ function isOrderMultiPageEnabled () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Getter for 'autosend_member_mails' config entry
+function getAutosendMemberMails () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('autosend_member_mails');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Determines whether 'autosend_member_mails' is set to 'Y'
+function isAutosendMemberMailsEnabled () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getAutosendMemberMails() == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'order_max_full' config entry
+function getOrderMaxFull () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('order_max_full');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Getter for 'order_mode' config entry
 function getOrderMode () {
        // Is there cache?
@@ -118,5 +154,29 @@ function getOrderSelect () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Getter for 'max_unconfirmed' config entry
+function getMaxUnconfirmed () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('max_unconfirmed');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'max_text_length' config entry
+function getMaxTextLenngth () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('max_text_length');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>