PHP Класс PartKeeprRequirements, PartKeepr

Наследование: extends SymfonyRequirements
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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