PHP 클래스 PhpSandbox\WhitelistVisitor
This class takes parsed AST code and checks it against the passed PHPSandbox instance configuration to
autmatically whitelist trusted code functions, classes, etc. if the appropriate settings are configured.
파일 보기
프로젝트 열기: Corveda/PHPSandbox
보호된 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$sandbox |
PHPSandbox |
The PHPSandbox instance to check against |
|
공개 메소드들
메소드 |
설명 |
|
__construct ( PHPSandbox $sandbox ) |
WhitelistVisitor class constructor |
|
leaveNode ( PhpParser\Node $node ) : null | boolean |
Examine the current PhpParser_Node node against the PHPSandbox configuration for whitelisting trusted code |
|
메소드 상세
This constructor takes a passed PHPSandbox instance to check against for whitelisting trusted code.
public __construct ( PHPSandbox $sandbox ) |
$sandbox |
PHPSandbox |
The PHPSandbox instance to check against |
Examine the current PhpParser_Node node against the PHPSandbox configuration for whitelisting trusted code
public leaveNode ( PhpParser\Node $node ) : null | boolean |
$node |
PhpParser\Node |
The trusted $node to examine |
리턴 |
null | boolean |
Return false if node must be removed, or null if no changes to the node are made |
프로퍼티 상세
The PHPSandbox instance to check against
protected PHPSandbox,phpsandbox $sandbox |
리턴 |
PHPSandbox |
|