<?php

use App\Controllers\Security_Controller;

/**
 * get the defined config value by a key
 * @param string $key
 * @return config value
 */
if (!function_exists('get_auto_attendance_setting')) {

    function get_auto_attendance_setting($key = "") {
        $config = new Auto_Attendance\Config\Auto_Attendance();

        $setting_value = get_array_value($config->app_settings_array, $key);
        if ($setting_value !== NULL) {
            return $setting_value;
        } else {
            return "";
        }
    }

}
