PHP Class Pimcore\File

Show file Open project: pimcore/pimcore Class Usage Examples

Public Properties

Property Type Description
$defaultMode integer

Protected Properties

Property Type Description
$context null | resource

Public Methods

Method Description
getContext ( ) : null | resource
getDefaultMode ( ) : integer
getFileExtension ( $name ) : string
getValidFilename ( $tmpFilename, null $language = null ) : string
isIncludeable ( $filename ) : boolean
mkdir ( $path, null $mode = null, boolean $recursive = true ) : boolean
put ( $path, $data ) : integer
putPhpFile ( $path, $data )
rename ( $oldPath, $newPath ) : boolean
setContext ( resource $context )
setDefaultMode ( $mode )

Method Details

getContext() public static method

public static getContext ( ) : null | resource
return null | resource

getDefaultMode() public static method

public static getDefaultMode ( ) : integer
return integer

getFileExtension() public static method

public static getFileExtension ( $name ) : string
$name
return string

getValidFilename() public static method

public static getValidFilename ( $tmpFilename, null $language = null ) : string
$tmpFilename
$language null
return string

isIncludeable() public static method

public static isIncludeable ( $filename ) : boolean
$filename
return boolean

mkdir() public static method

public static mkdir ( $path, null $mode = null, boolean $recursive = true ) : boolean
$path
$mode null
$recursive boolean
return boolean

put() public static method

public static put ( $path, $data ) : integer
$path
$data
return integer

putPhpFile() public static method

public static putPhpFile ( $path, $data )
$path
$data

rename() public static method

public static rename ( $oldPath, $newPath ) : boolean
$oldPath
$newPath
return boolean

setContext() public static method

public static setContext ( resource $context )
$context resource

setDefaultMode() public static method

public static setDefaultMode ( $mode )
$mode

Property Details

$context protected static property

protected static null|resource $context
return null | resource

$defaultMode public static property

public static int $defaultMode
return integer