private static function api_access_config_check($className, $httpMethod = 'GET')
{
$access = false;
$api_access = singleton($className)->stat('api_access');
if (is_string($api_access)) {
$api_access = explode(',', strtoupper($api_access));
if (in_array($httpMethod, $api_access)) {
$access = true;
} else {
$access = false;
}
} elseif ($api_access === true) {
$access = true;
}
return $access;
}