PhpSandbox\PHPSandbox::isWhitelisted PHP Méthode

isWhitelisted() public méthode

Check if PHPSandbox instance has whitelist type and name set
public isWhitelisted ( string $type, string $name ) : boolean
$type string String of whitelist $type to query
$name string String of whitelist $name to query
Résultat boolean Returns true if PHPSandbox instance has whitelisted $type and $name, false otherwise
    public function isWhitelisted($type, $name)
    {
        return isset($this->whitelist[$type][$name]);
    }
PHPSandbox