Properties

$dependencies

$dependencies : 

Type

$shortcuts

$shortcuts : 

Type

$singleton

$singleton : 

Type

$class_hash

$class_hash : 

Type

$_shorts

$_shorts : 

Type

$_shorts_loaded

$_shorts_loaded : 

Type

$_class_index

$_class_index : 

Type

$fhandler

$fhandler : 

Initiate the cacheHandler

Type

Methods

__get()

__get(  $name) 

Parameters

$name

__isset()

__isset(  $name) 

Parameters

$name

__dependencies()

__dependencies() 

__shortcuts()

__shortcuts() 

__destruct()

__destruct() 

__construct()

__construct(  $globalcache = false,   $fhandler = false) 

Parameters

$globalcache
$fhandler

secure_folder()

secure_folder(  $foldername,   $plugin = false,   $deny_all = true) 

Functions optimized for data-folder. When using outside of data-Folder, set $plugin false.

Example: Using with data-Folder: $pfh->secure_folder('backup', 'eqdkp'); Using outside data-Folder: $pfh->secure_folder($this->root_path.'templates', FALSE);

Parameters

$foldername
$plugin
$deny_all

CheckCreateFolder()

CheckCreateFolder(  $path,   $plugin = false) 

Parameters

$path
$plugin

CheckCreateFile()

CheckCreateFile(  $path,   $plugin = false,   $blnCreate = true) 

Parameters

$path
$plugin
$blnCreate

Delete()

Delete(  $path,   $plugin = false) 

Parameters

$path
$plugin

FileDate()

FileDate(  $filename,   $plugin = false) 

Parameters

$filename
$plugin

FilePath()

FilePath(  $path,   $plugin = false,   $blnCreateFile = true,   $linkType = 'relative') 

Parameters

$path
$plugin
$blnCreateFile
$linkType

FolderPath()

FolderPath(  $foldername,   $plugin = false,   $linkType = 'relative') 

Parameters

$foldername
$plugin
$linkType

FileSize()

FileSize(  $file,   $plugin = false) 

Parameters

$file
$plugin

FileLink()

FileLink(  $path,   $plugin = false,   $linkType = 'plain') : \Link

Return a file link to the file

Parameters

$path

Path, including file

$plugin

Plugin name, p.e. 'raidplan'

$linkType

plain/absolute/relative

Returns

\Link —

to the file

testWrite()

testWrite(  $file = false) 

The following functions need filename or foldername with $this->root_path

Example: $pfh->copy($this->root_path.'/templates/file.php', $this->root_path.'/libraries/test.php');

Parameters

$file

copy()

copy(  $source,   $dest) 

Parameters

$source
$dest

rename()

rename(  $old_file,   $new_file) 

Parameters

$old_file
$new_file

FileMove()

FileMove(  $filename,   $tofile,   $tmpmove = false) 

Parameters

$filename
$tofile
$tmpmove

thumbnail()

thumbnail(  $image,   $thumbfolder,   $filename,   $resize_width = 400,   $resize_height = false) 

Parameters

$image
$thumbfolder
$filename
$resize_width
$resize_height

putContent()

putContent(  $filename,   $data) 

Parameters

$filename
$data

addContent()

addContent(  $filename,   $data) 

Parameters

$filename
$data

is_writable()

is_writable(  $file,   $testfile = false) 

Parameters

$file
$testfile

get_errors()

get_errors() 

get_cachefolder()

get_cachefolder(  $blnPlain = false) 

Parameters

$blnPlain

check_cachefolder()

check_cachefolder() 

CacheWritable()

CacheWritable() : boolean

Check if the cache is writable

Returns

boolean

remove_rootpath()

remove_rootpath(  $string) 

Parameters

$string