\Hazaar\File
Image
Summary
Methods Properties Constants
md5
No constants
Properties
$renderer
$renderer
Inherited
$contents
$contents
Inherited
$handle
$handle
Inherited
$info
$info
Inherited
$mime_content_type
$mime_content_type
Inherited
$resource
$resource
Inherited
$source_file
$source_file
Methods
__call()
__call($func, $params)

Parameters

$func

No description

$params

No description

__construct()
__construct($filename = null, $quality = null, $backend = null, $renderer = 'default')

Parameters

$filename

No description

$quality

No description

$backend

No description

$renderer

No description

checkLoaded()
checkLoaded()
get_contents()
get_contents($offset = 1, $maxlen = null, $allow_compress = true)

Parameters

$offset

No description

$maxlen

No description

$allow_compress

No description

get_renderer()
get_renderer($renderer, $quality)

Parameters

$renderer

No description

$quality

No description

height()
height()
quality()
quality($quality = null)

Parameters

$quality

No description

set_contents()
set_contents($bytes)

Parameters

$bytes

No description

width()
width()
Inherited
dirname()
dirname()
Inherited
exists()
exists()
Inherited
extension()
extension()
Inherited
fullpath()
fullpath()
Inherited
get_contents()
get_contents($offset = 1, $maxlen = null)

Parameters

$offset

No description

$maxlen

No description

Inherited
get_meta()
get_meta($key = null)

Parameters

$key

No description

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

Returns

string
Inherited
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
Inherited
gets()
gets() : string
Returns a line from the file pointer

Returns

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

Returns

string
Inherited
has_contents()
has_contents()
Inherited
is_dir()
is_dir()
Inherited
is_file()
is_file()
Inherited
is_link()
is_link()
Inherited
is_readable()
is_readable()
Inherited
is_writable()
is_writable()
Inherited
md5()
md5()
Inherited
mime_content_type()
mime_content_type()
Inherited
mtime()
mtime()
Inherited
name()
name()
Inherited
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
Inherited
parent()
parent()
Inherited
parseJSON()
parseJSON($assoc = false)

Parameters

$assoc

No description

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

Parameters

$params

No description

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

Parameters

$data

No description

$overwrite

No description

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

Returns

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

Parameters

$filename

No description

$overwrite

No description

Inherited
set_contents()
set_contents($bytes)

Parameters

$bytes

No description

Inherited
set_meta()
set_meta($values)

Parameters

$values

No description

Inherited
set_mime_content_type()
set_mime_content_type($type)

Parameters

$type

No description

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

Parameters

$params

No description

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

Parameters

$delimiter

No description

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

Parameters

$filename

No description