PhpSandbox\PHPSandbox::isWhitelistedKeyword PHP Méthode

isWhitelistedKeyword() public méthode

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