]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Wrapper function introduced, double-quotes converted to single:
[mailer.git] / inc / wrapper-functions.php
index 8925b3deb989e232f54541393bc1b639a4842953..81fbc2f8b03e1ee70af368e25d0b0e0658ac7259 100644 (file)
@@ -2430,10 +2430,25 @@ function changeDataInInclude ($FQFN, $comment, $prefix, $suffix, $DATA, $seek=0)
        return changeDataInFile($FQFN, $comment, $prefix, $suffix, $DATA, $seek);
 }
 
+// Wrapper for changing entries in config-local.php
+function changeDataInLocalConfigurationFile ($comment, $prefix, $suffix, $DATA, $seek = 0) {
+       // Call the inner function
+       return changeDataInInclude(getCachePath() . 'config-local.php', $comment, $prefix, $suffix, $DATA, $seek);
+}
+
 // Shortens ucfirst(strtolower()) calls
 function firstCharUpperCase ($str) {
        return ucfirst(strtolower($str));
 }
 
+// Shortens calls with configuration entry as first argument (the second will become obsolete in the future)
+function createConfigurationTimeSelections ($configEntry, $stamps) {
+       // Get the configuration entry
+       $configValue = getConfig($configEntry);
+
+       // Call inner method
+       return createTimeSelections($configValue, $configEntry, $stamps);
+}
+
 // [EOF]
 ?>