\SplFileInfo
Synopsis
class SplFileInfo
{
- // methods
- public void __construct()
- public int getATime()
- public string getBasename()
- public int getCTime()
- public string getExtension()
- public SplFileInfo getFileInfo()
- public string getFilename()
- public int getGroup()
- public int getInode()
- public string getLinkTarget()
- public int getMTime()
- public int getOwner()
- public string getPath()
- public SplFileInfo getPathInfo()
- public string getPathname()
- public int getPerms()
- public string getRealPath()
- public int getSize()
- public string getType()
- public bool isDir()
- public bool isExecutable()
- public bool isFile()
- public bool isLink()
- public bool isReadable()
- public bool isWritable()
- public SplFileObject openFile()
- public void setFileClass()
- public void setInfoClass()
- public void __toString()
Hierarchy
Extended by
Methods
public
- __construct() — Construct a new SplFileInfo object
- __toString() — Returns the path to the file as a string
- getATime() — Gets last access time of the file
- getBasename() — Gets the base name of the file
- getCTime() — Gets the inode change time
- getExtension() — Gets the file extension
- getFileInfo() — Gets an SplFileInfo object for the file
- getFilename() — Gets the filename
- getGroup() — Gets the file group
- getInode() — Gets the inode for the file
- getLinkTarget() — Gets the target of a link
- getMTime() — Gets the last modified time
- getOwner() — Gets the owner of the file
- getPath() — Gets the path without filename
- getPathInfo() — Gets an SplFileInfo object for the path
- getPathname() — Gets the path to the file
- getPerms() — Gets file permissions
- getRealPath() — Gets absolute path to file
- getSize() — Gets file size
- getType() — Gets file type
- isDir() — Tells if the file is a directory
- isExecutable() — Tells if the file is executable
- isFile() — Tells if the object references a regular file
- isLink() — Tells if the file is a link
- isReadable() — Tells if file is readable
- isWritable() — Tells if the entry is writable
- openFile() — Gets an SplFileObject object for the file
- setFileClass() — Sets the class name used with SplFileInfo::openFile
- setInfoClass() — Sets the class used with getFileInfo and getPathInfo