PHP 클래스 PHPPM\Utils

파일 보기 프로젝트 열기: php-pm/php-pm 1 사용 예제들

공개 메소드들

메소드 설명
bindAndCall ( callable $fn, object $newThis, array $args = [], string $bindClass = null ) Executes a function in the context of an object. This basically bypasses the private/protected check of PHP.
generateSessionId ( ) : string Generates stronger session ids for session handling.
getMaxMemory ( ) : integer
hijackProperty ( object $object, string $propertyName, mixed $newValue ) Changes a property value of an object. (hijack because you can also change private/protected properties)
isWindows ( ) : boolean

메소드 상세

bindAndCall() 공개 정적인 메소드

Executes a function in the context of an object. This basically bypasses the private/protected check of PHP.
public static bindAndCall ( callable $fn, object $newThis, array $args = [], string $bindClass = null )
$fn callable
$newThis object
$args array
$bindClass string

generateSessionId() 공개 정적인 메소드

Generates stronger session ids for session handling.
public static generateSessionId ( ) : string
리턴 string

getMaxMemory() 공개 정적인 메소드

public static getMaxMemory ( ) : integer
리턴 integer bytes

hijackProperty() 공개 정적인 메소드

Changes a property value of an object. (hijack because you can also change private/protected properties)
public static hijackProperty ( object $object, string $propertyName, mixed $newValue )
$object object
$propertyName string
$newValue mixed

isWindows() 공개 정적인 메소드

public static isWindows ( ) : boolean
리턴 boolean