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.
저자: Elijah Horton ([email protected])
상속: extends PhpParser\NodeVisitorAbstract
파일 보기 프로젝트 열기: Corveda/PHPSandbox

보호된 프로퍼티들

프로퍼티 타입 설명
$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