\EncodeExplorer

EncodeExplorer

Summary

Methods
Properties
Constants
getFilename()
init()
readDir()
sort()
makeArrow()
makeLink()
makeIcon()
formatModTime()
formatSize()
cmp_name()
cmp_size()
cmp_mod()
run()
outputHtml()
$location
$dirs
$files
$sort_by
$sort_as
$messages
$errors
$session
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$location

$location : 

object

Type

$dirs

$dirs : 

array

Type

$files

$files : 

array

Type

$sort_by

$sort_by : 

string

Type

$sort_as

$sort_as : 

string

Type

$messages

$messages : 

object

Type

$errors

$errors : 

object

Type

$session

$session : 

object

Type

Methods

getFilename()

getFilename( file) : \modified

get filename for display

Parameters

file

Returns

\modified —

filename

init()

init() : 

Determine sorting

Returns

readDir()

readDir() : 

Read the file list from the directory

Returns

sort()

sort() : 

Sort the file list

Returns

makeArrow()

makeArrow( sort_by) : 

Make the arrow images

Parameters

sort_by

Returns

makeLink()

makeLink( sort_by,  sort_as,  dir) : 

make an image link

Parameters

sort_by
sort_as
dir

Returns

makeIcon()

makeIcon( l) : 

Make the image icon link

Parameters

l

Returns

formatModTime()

formatModTime(  time) : 

Format the file modification time for display

Parameters

time

Unix file time

Returns

formatSize()

formatSize(  size) : 

Format the file size for display

Parameters

size

Returns

cmp_name()

cmp_name( b,  a) : 

Comparison callback for sorting by name

Parameters

b
a

Returns

cmp_size()

cmp_size( a,  b) : 

Comparison callback for sorting by size

Parameters

a
b

Returns

cmp_mod()

cmp_mod( b,  a) : 

Comparison callback for sorting by Unix time

Parameters

b
a

Returns

run()

run(  location,   delete = FALSE) : 

Main function, activating tasks

Parameters

location
delete

Default is FALSE (don't output html, just return $this->files object). If TRUE, output html with no return

Returns

Optional

outputHtml()

outputHtml() : 

Output the HTML

Returns