class File (View source)

Properties

static int $defaultMode
static protected null|resource $context

Methods

static string
getFileExtension($name)

No description

static string
getValidFilename($tmpFilename, null $language = null)

No description

static bool
isIncludeable($filename)

No description

static 
setDefaultMode($mode)

No description

static int
getDefaultMode()

No description

static int
put($path, $data)

No description

static 
putPhpFile($path, $data)

No description

static bool
mkdir($path, null $mode = null, bool $recursive = true)

No description

static bool
rename($oldPath, $newPath)

No description

static null|resource
getContext()

No description

static 
setContext(resource $context)

No description

Details

static string getFileExtension($name)

Parameters

$name

Return Value

string

static string getValidFilename($tmpFilename, null $language = null)

Parameters

$tmpFilename
null $language

Return Value

string

static bool isIncludeable($filename)

Parameters

$filename

Return Value

bool

static setDefaultMode($mode)

Parameters

$mode

static int getDefaultMode()

Return Value

int

static int put($path, $data)

Parameters

$path
$data

Return Value

int

static putPhpFile($path, $data)

Parameters

$path
$data

static bool mkdir($path, null $mode = null, bool $recursive = true)

Parameters

$path
null $mode
bool $recursive

Return Value

bool

static bool rename($oldPath, $newPath)

Parameters

$oldPath
$newPath

Return Value

bool

static null|resource getContext()

Return Value

null|resource

static setContext(resource $context)

Parameters

resource $context