]> git.mxchange.org Git - mailer.git/commitdiff
Added some wrappers to speed-up things
authorRoland Häder <roland@mxchange.org>
Mon, 29 Jul 2013 22:55:33 +0000 (22:55 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 29 Jul 2013 22:55:33 +0000 (22:55 +0000)
inc/libs/wernis_functions.php

index b7c369d21b62051ff9bc65b9659ade678af95121..48f3677c9c2a4c0e3efd7061f5c07f39b0dc0bd1 100644 (file)
@@ -563,5 +563,53 @@ function getWernisWithdrawFeeFix () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Wrapper function for 'wernis_payout_fee_percent'
+function getWernisPayoutFeePercent () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Get config entry
+               $GLOBALS[__FUNCTION__] = getConfig('wernis_payout_fee_percent');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Wrapper function for 'wernis_payout_fee_fix'
+function getWernisPayoutFeeFix () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Get config entry
+               $GLOBALS[__FUNCTION__] = getConfig('wernis_payout_fee_fix');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Wrapper function for 'wernis_min_payout'
+function getWernisMinPayout () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Get config entry
+               $GLOBALS[__FUNCTION__] = getConfig('wernis_min_payout');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Wrapper function for 'wernis_min_withdraw'
+function getWernisMinWithdraw () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Get config entry
+               $GLOBALS[__FUNCTION__] = getConfig('wernis_min_withdraw');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>