PHP 클래스 Bolt\Filesystem\FilePermissions

저자: Benjamin Georgeault ([email protected])
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$allowed Regex list represented editable resources.
$allowedPrefixes List of Filesystem prefixes that are editable.
$blocked Regex list represented resources forbidden for edition.
$config Bolt\Config
$maxUploadSize Maximum upload size allowed by PHP, in bytes.

공개 메소드들

메소드 설명
__construct ( Config $config ) Constructor, initialize filters rules.
allowedUpload ( string $originalFilename ) : boolean Checks if a given file is acceptable for upload.
authorized ( string $prefix, string $path ) : boolean Check if you can do something with the given file or directory.
getAllowedUploadExtensions ( ) : array Get the array of configured acceptable file extensions.
getMaxUploadSize ( ) : double Get the maximum upload size the server is configured to accept.
getMaxUploadSizeNice ( ) : string Get the max upload value in a formatted string.

메소드 상세

__construct() 공개 메소드

Constructor, initialize filters rules.
public __construct ( Config $config )
$config Bolt\Config

allowedUpload() 공개 메소드

Checks if a given file is acceptable for upload.
public allowedUpload ( string $originalFilename ) : boolean
$originalFilename string
리턴 boolean

authorized() 공개 메소드

Check if you can do something with the given file or directory.
public authorized ( string $prefix, string $path ) : boolean
$prefix string
$path string
리턴 boolean

getAllowedUploadExtensions() 공개 메소드

Get the array of configured acceptable file extensions.
public getAllowedUploadExtensions ( ) : array
리턴 array

getMaxUploadSize() 공개 메소드

Get the maximum upload size the server is configured to accept.
public getMaxUploadSize ( ) : double
리턴 double

getMaxUploadSizeNice() 공개 메소드

Get the max upload value in a formatted string.
public getMaxUploadSizeNice ( ) : string
리턴 string

프로퍼티 상세

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

Regex list represented editable resources.
protected $allowed

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

List of Filesystem prefixes that are editable.
protected $allowedPrefixes

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

Regex list represented resources forbidden for edition.
protected $blocked

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

protected Config,Bolt $config
리턴 Bolt\Config

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

Maximum upload size allowed by PHP, in bytes.
protected $maxUploadSize