Current Path : /storage/v11800/salandingpage/public_html/wp-content/plugins/ninja-forms/includes/Admin/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/salandingpage/public_html/wp-content/plugins/ninja-forms/includes/Admin/RestControllerSafeList.php |
<?php
namespace NinjaForms\Includes\Admin;
/**
* Configuration of what can be called and extended by NF_AJAX_REST_Controller
*/
class RestControllerSafeList
{
const ALLOWED_METHOD_CALLS = [
'NF_AJAX_Controllers_Form' => [
'delete'
],
'NF_AJAX_REST_Forms' => [
'delete'
]
];
public static function isClassMethodAllowed(string $fqcn, string $method): bool
{
$return = false;
if(isset(self::ALLOWED_METHOD_CALLS[$fqcn])
&& in_array($method,self::ALLOWED_METHOD_CALLS[$fqcn])
){
$return = true;
}
return $return;
}
}