Documentation

Filesystem extends Helper
in package

Table of Contents

$app  : App
$context  : mixed
__call()  : mixed
__construct()  : mixed
__get()  : mixed
__invoke()  : mixed
copy()  : bool
delete()  : void
getDirSize()  : int
ls()  : array<string|int, mixed>
mkdir()  : bool
path()  : string|null
read()  : bool|mixed
removeEmptySubFolders()  : bool
rename()  : bool
write()  : bool|mixed
initialize()  : mixed

Properties

$context

public mixed $context

Methods

__call()

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed
Return values
mixed

__construct()

public __construct(App $app[, mixed $context = null ]) : mixed
Parameters
$app : App
$context : mixed = null
Return values
mixed

__get()

public __get(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

__invoke()

public __invoke(mixed $helper) : mixed
Parameters
$helper : mixed
Return values
mixed

copy()

public copy( $path,  $dest[, bool|true $_init = true ]) : bool
Parameters
$path :
$dest :
$_init : bool|true = true
Return values
bool

delete()

public delete( $path) : void
Parameters
$path :
Tags
throws
Exception
Return values
void

getDirSize()

public getDirSize( $dir) : int
Parameters
$dir :
Return values
int

ls()

public ls() : array<string|int, mixed>
Return values
array<string|int, mixed>

mkdir()

public mkdir( $path[, int $mode = 0755 ]) : bool
Parameters
$path :
$mode : int = 0755
Return values
bool

path()

public path(string $path) : string|null
Parameters
$path : string
Return values
string|null

read()

public read() : bool|mixed
Return values
bool|mixed

removeEmptySubFolders()

public removeEmptySubFolders( $dir[, bool|false $selfremove = false ]) : bool
Parameters
$dir :
$selfremove : bool|false = false
Return values
bool

rename()

public rename( $path,  $newpath[, bool|true $overwrite = true ]) : bool
Parameters
$path :
$newpath :
$overwrite : bool|true = true
Tags
throws
Exception
Return values
bool

write()

public write() : bool|mixed
Return values
bool|mixed

initialize()

protected initialize() : mixed
Return values
mixed

Search results