PHP 클래스 Pagekit\Finder\Event\FileAccessEvent

상속: extends Pagekit\Event\Event
파일 보기 프로젝트 열기: pagekit/pagekit

보호된 프로퍼티들

프로퍼티 타입 설명
$notPaths string[]
$readPaths string[]
$writePaths string[]

공개 메소드들

메소드 설명
mode ( $path )
path ( string $pattern, string $mode = 'r' ) Adds a rule a path must match

보호된 메소드들

메소드 설명
isRegex ( string $str ) : boolean Checks whether the string is a regex.
toRegex ( string $str ) : string Converts strings to regexp.

메소드 상세

isRegex() 보호된 메소드

Checks whether the string is a regex.
protected isRegex ( string $str ) : boolean
$str string
리턴 boolean Whether the given string is a regex

mode() 공개 메소드

public mode ( $path )

path() 공개 메소드

You can use patterns (delimited with / sign) or simple strings. $event->path('some/special/dir', 'w') $event->path('/some\/special\/dir/', 'w') // same as above
public path ( string $pattern, string $mode = 'r' )
$pattern string A pattern (a regexp or a string)
$mode string ('r', 'read', 'w', 'write', '-', 'deny'

toRegex() 보호된 메소드

PCRE patterns are left unchanged. Default conversion: 'lorem/ipsum/dolor' ==> 'lorem\/ipsum\/dolor/' Use only / as directory separator (on Windows also).
protected toRegex ( string $str ) : string
$str string Pattern: regexp or dirname.
리턴 string regexp corresponding to a given string or regexp

프로퍼티 상세

$notPaths 보호되어 있는 프로퍼티

protected string[] $notPaths
리턴 string[]

$readPaths 보호되어 있는 프로퍼티

protected string[] $readPaths
리턴 string[]

$writePaths 보호되어 있는 프로퍼티

protected string[] $writePaths
리턴 string[]