\Hazaar
File
Summary
Methods Properties Constants
dir
md5
No constants
Properties
$backend
$backend
$contents
$contents
$handle
$handle
$info
$info
$mime_content_type
$mime_content_type
$resource
$resource
$source_file
$source_file
Methods
__construct()
__construct($file = null, $backend = null)

Parameters

$file

No description

$backend

No description

__destruct()
__destruct()
__tostring()
__tostring()
base64()
base64()
basename()
basename()
close()
close() : boolean
Close the file handle if it is currently open

Returns

boolean
copyTo()
copyTo($destination, $create_dest = false, $dstBackend = null)

Parameters

$destination

No description

$create_dest

No description

$dstBackend

No description

dir()
dir()
direct_uri()
direct_uri()
dirname()
dirname()
exists()
exists()
extension()
extension()
fullpath()
fullpath()
get_contents()
get_contents($offset = 1, $maxlen = null)

Parameters

$offset

No description

$maxlen

No description

get_meta()
get_meta($key = null)

Parameters

$key

No description

getc()
getc() : string
Returns a character from the file pointer

Returns

string
getcsv()
getcsv($length = 0, $delimiter = ',', $enclosure = '"', $escape = '\\') : string
Returns a line from the file pointer and parse for CSV fields

Parameters

$length

No description

$delimiter

No description

$enclosure

No description

$escape

No description

Returns

string
gets()
gets() : string
Returns a line from the file pointer

Returns

string
getss()
getss() : string
Returns a line from the file pointer and strips HTML tags

Returns

string
has_contents()
has_contents()
is_dir()
is_dir()
is_file()
is_file()
is_link()
is_link()
is_readable()
is_readable()
is_writable()
is_writable()
md5()
md5()
mime_content_type()
mime_content_type()
mtime()
mtime()
name()
name()
open()
open($mode = 'r') : resource
Open a file and return it's file handle

This is useful for using the file with standard (yet unsupported) file functions.

Parameters

$modestring

No description

Returns

resource
parent()
parent()
parseJSON()
parseJSON($assoc = false)

Parameters

$assoc

No description

preview_uri()
preview_uri($params = Array ( ) )

Parameters

$params

No description

put_contents()
put_contents($data, $overwrite = false)

Parameters

$data

No description

$overwrite

No description

readCSV()
readCSV() : array
Return the CSV content as a parsed array

Returns

array
realpath()
realpath()
save()
save()
saveAs()
saveAs($filename, $overwrite = false)

Parameters

$filename

No description

$overwrite

No description

set_contents()
set_contents($bytes)

Parameters

$bytes

No description

set_meta()
set_meta($values)

Parameters

$values

No description

set_mime_content_type()
set_mime_content_type($type)

Parameters

$type

No description

size()
size()
thumbnail()
thumbnail($params = Array ( ) )

Parameters

$params

No description

toArray()
toArray($delimiter = '"\n"')

Parameters

$delimiter

No description

toString()
toString()
type()
type()
unlink()
unlink()
unzip()
unzip($filename)

Parameters

$filename

No description