The SplTempFileObject class

Introduction

The SplTempFileObject class offers an object-oriented interface for a temporary file.

Class synopsis

SplTempFileObject
extends SplFileObject
/* Inherited constants */
public const int SplFileObject::DROP_NEW_LINE;
public const int SplFileObject::READ_AHEAD;
public const int SplFileObject::SKIP_EMPTY;
public const int SplFileObject::READ_CSV;
/* Methods */
public SplTempFileObject::__construct(int $maxMemory = 2 * 1024 * 1024)
/* Inherited methods */
public stringarrayfalse current()
public bool eof()
public bool fflush()
public stringfalse fgetc()
public arrayfalse fgetcsv(string $separator = ",", string $enclosure = "\"", string $escape = "\\")
public string fgets()
public string fgetss(string $allowable_tags = ?)
public bool flock(int $operation, int &$wouldBlock = null)
public int fpassthru()
public intfalse fputcsv(
    array $fields,
    string $separator = ",",
    string $enclosure = "\"",
    string $escape = "\\",
    string $eol = "\n"
)
public stringfalse fread(int $length)
public arrayintnull fscanf(string $format, mixed &...$vars)
public int fseek(int $offset, int $whence = SEEK_SET)
public array fstat()
public intfalse ftell()
public bool ftruncate(int $size)
public intfalse fwrite(string $data, int $length = 0)
public null getChildren()
public array getCsvControl()
public int getFlags()
public int getMaxLineLen()
public false hasChildren()
public int key()
public void next()
public void rewind()
public void seek(int $line)
public void setCsvControl(string $separator = ",", string $enclosure = "\"", string $escape = "\\")
public void setFlags(int $flags)
public void setMaxLineLen(int $maxLength)
public string __toString()
public bool valid()
public intfalse SplFileInfo::getATime()
public string SplFileInfo::getBasename(string $suffix = "")
public intfalse SplFileInfo::getCTime()
public string SplFileInfo::getExtension()
public SplFileInfo SplFileInfo::getFileInfo(stringnull $class = null)
public string SplFileInfo::getFilename()
public intfalse SplFileInfo::getGroup()
public intfalse SplFileInfo::getInode()
public stringfalse SplFileInfo::getLinkTarget()
public intfalse SplFileInfo::getMTime()
public intfalse SplFileInfo::getOwner()
public string SplFileInfo::getPath()
public SplFileInfonull SplFileInfo::getPathInfo(stringnull $class = null)
public string SplFileInfo::getPathname()
public intfalse SplFileInfo::getPerms()
public stringfalse SplFileInfo::getRealPath()
public intfalse SplFileInfo::getSize()
public stringfalse SplFileInfo::getType()
public bool SplFileInfo::isDir()
public bool SplFileInfo::isExecutable()
public bool SplFileInfo::isFile()
public bool SplFileInfo::isLink()
public bool SplFileInfo::isReadable()
public bool SplFileInfo::isWritable()
public SplFileObject SplFileInfo::openFile(string $mode = "r", bool $useIncludePath = false, resourcenull $context = null)
public void SplFileInfo::setFileClass(string $class = SplFileObject::class)
public void SplFileInfo::setInfoClass(string $class = SplFileInfo::class)
public string SplFileInfo::__toString()
Table of Contents