FileHandle¶
-
php\gdx\files\FileHandle Class FileHandle
Methods
__construct($path)¶
Параметры:
- $path –
string, php\io\File
path()¶
Результат: string
name()¶
Результат: string
extension()¶
Результат: string
nameWithoutExtension()¶
Результат: string
pathWithoutExtension()¶
Результат: string
type()¶
Результат: string
file()¶
Результат: php\io\File
read()¶
Результат: php\io\Stream
readString($charset)¶
Параметры:
- $charset –
string- (optional)Результат:
string
readBytes()¶
Результат: stringbinary
write($append, $bufferSize)¶
Параметры:
- $append –
bool- $bufferSize –
int- (optional)Результат:
writeString($string, $append, $charset)¶
Параметры:
- $string –
string- $append –
bool- $charset –
string- (optional)
writeBytes($binaryString, $append)¶
Параметры:
- $binaryString –
string- $append –
bool
getList($suffix)¶
Параметры:
- $suffix –
string- (optional)Результат:
isDirectory()¶
Результат: bool
child($name)¶
Параметры:
- $name –
stringРезультат:
sibling($name)¶
Параметры:
- $name –
Результат:
parent()¶
Результат: php\gdx\files\FileHandle
mkdirs()¶throws
php\gdx\files\\Exception
exists()¶
Результат: bool
delete()¶
Результат: bool
deleteDirectory()¶
Результат: bool
emptyDirectory($preserveTree)¶
Параметры:
- $preserveTree –
bool- (optional)
copyTo($fileHandle)¶
Параметры:
- $fileHandle – php\gdx\files\FileHandle
moveTo($fileHandle)¶
Параметры:
- $fileHandle – php\gdx\files\FileHandle
length()¶
Результат: int
lastModified()¶
Результат: int
- static
tempFile($suffix)¶
Параметры:
- $suffix –
stringРезультат:
- static
tempDirectory($suffix)¶
Параметры:
- $suffix –
stringРезультат: