PHP 클래스 PartKeeprRequirements, PartKeepr

상속: extends SymfonyRequirements
파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Constructor that initializes the requirements.

보호된 메소드들

메소드 설명
checkWritable ( $path ) Checks if a path is writable. If not, generates a requirement.
getBytesIniSetting ( $setting ) : integer Returns a php.ini setting with parsed byte values.
isWritableRecursive ( string $dir ) : boolean Checks if the given directory and all contained files within it is writable by the current user.
returnBytes ( $val ) : integer | string Parses a value with g,m or k modifiers and returns the effective bytes.

메소드 상세

__construct() 공개 메소드

Constructor that initializes the requirements.
public __construct ( )

checkWritable() 보호된 메소드

Checks if a path is writable. If not, generates a requirement.
protected checkWritable ( $path )
$path string The path to check

getBytesIniSetting() 보호된 메소드

Example: If you specify memory_limit=64M, this method will return 67108864 bytes.
protected getBytesIniSetting ( $setting ) : integer
$setting string The php.ini setting
리턴 integer The byts

isWritableRecursive() 보호된 메소드

Checks if the given directory and all contained files within it is writable by the current user.
protected isWritableRecursive ( string $dir ) : boolean
$dir string The directory to check
리턴 boolean True if the path is writable

returnBytes() 보호된 메소드

Parses a value with g,m or k modifiers and returns the effective bytes.
protected returnBytes ( $val ) : integer | string
$val string The value to parse
리턴 integer | string The bytes