FileHandle

php\gdx\files\FileHandle

Class FileHandle

Methods


__construct($path)
Параметры:
path()
Результат:string
name()
Результат:string
extension()
Результат:string
nameWithoutExtension()
Результат:string
pathWithoutExtension()
Результат:string
type()
Результат:string
file()
Результат:php\io\File
read()
Результат:php\io\Stream
readString($charset)
Параметры:
  • $charsetstring - (optional)
Результат:

string

readBytes()
Результат:string binary
write($append, $bufferSize)
Параметры:
  • $appendbool
  • $bufferSizeint - (optional)
Результат:

php\io\Stream

writeString($string, $append, $charset)
Параметры:
  • $stringstring
  • $appendbool
  • $charsetstring - (optional)
writeBytes($binaryString, $append)
Параметры:
  • $binaryStringstring
  • $appendbool
getList($suffix)
Параметры:
  • $suffixstring - (optional)
Результат:

php\gdx\files\FileHandle[]

isDirectory()
Результат:bool
child($name)
Параметры:
  • $namestring
Результат:

php\gdx\files\FileHandle

sibling($name)
Параметры:
  • $name
Результат:

php\gdx\files\FileHandle

parent()
Результат:php\gdx\files\FileHandle
mkdirs()

throws php\gdx\files\\Exception

exists()
Результат:bool
delete()
Результат:bool
deleteDirectory()
Результат:bool
emptyDirectory($preserveTree)
Параметры:
  • $preserveTreebool - (optional)
copyTo($fileHandle)
Параметры:
moveTo($fileHandle)
Параметры:
length()
Результат:int
lastModified()
Результат:int
static tempFile($suffix)
Параметры:
  • $suffixstring
Результат:

php\gdx\files\FileHandle

static tempDirectory($suffix)
Параметры:
  • $suffixstring
Результат:

php\gdx\files\FileHandle