PHP Класс PhpSandbox\SandboxWhitelistVisitor
This class takes parsed AST code and checks it against the passed PHPSandbox instance configuration to
autmatically whitelist sandboxed code functions, classes, etc. if the appropriate settings are configured.
Показать файл
Открыть проект
Защищенные свойства (Protected)
Свойство |
Тип |
Описание |
|
$sandbox |
PHPSandbox |
The PHPSandbox instance to check against |
|
Открытые методы
Метод |
Описание |
|
__construct ( PHPSandbox $sandbox ) |
SandboxWhitelistVisitor class constructor |
|
leaveNode ( PhpParser\Node $node ) : null |
Examine the current PhpParser\Node node against the PHPSandbox configuration for whitelisting sandboxed code |
|
Описание методов
__construct()
публичный Метод
This constructor takes a passed PHPSandbox instance to check against for whitelisting sandboxed code.
public __construct ( PHPSandbox $sandbox ) |
$sandbox |
PHPSandbox |
The PHPSandbox instance to check against |
leaveNode()
публичный Метод
Examine the current PhpParser\Node node against the PHPSandbox configuration for whitelisting sandboxed code
public leaveNode ( PhpParser\Node $node ) : null |
$node |
PhpParser\Node |
The sandboxed $node to examine |
Результат |
null |
|
Описание свойств
$sandbox защищенное свойство
The PHPSandbox instance to check against
protected PHPSandbox,phpsandbox $sandbox |
Результат |
PHPSandbox |
|