File
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\File » Craft\BaseIO
- Since
- 1.0
Class File
See also http://craftcms.com
View source (opens new window)
# Protected Properties
Property | Description |
---|---|
$path | string (opens new window) |
# Public Methods
# __construct()
Signature
public Craft\File __construct ( $path )
# clear()
Signature
public boolean clear ( )
# copy()
Signature
public boolean copy ( $destination )
# delete()
Signature
public boolean delete ( )
# getContents()
Signature
public mixed getContents ( $array = false )
# getExtension()
Signature
public string getExtension ( )
# getFileName()
View source (opens new window)
Arguments
$includeExtension
(boolean (opens new window))
Returns
mixed
Signature
public mixed getFileName ( $includeExtension = true )
# getMD5()
Signature
public mixed getMD5 ( )
# getMimeType()
Signature
public string getMimeType ( )
# getSize()
Signature
public mixed getSize ( )
# isEmpty()
Signature
public boolean isEmpty ( )
# touch()
Signature
public boolean touch ( )
# write()
Signature
public boolean write ( $contents, $append )