\Files

Class Files

For Unix logs files viewer

Summary

Methods
Properties
Constants
openFilename()
error()
isLastBlock()
seekToLastBlock()
processFilename()
showLogs()
tail()
$largeFileChunk
$lineIFS
$handler
$logfiles
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$largeFileChunk

$largeFileChunk : 

Type

$lineIFS

$lineIFS : 

Type

$handler

$handler : 

Type

$logfiles

$logfiles : 

Type

Methods

openFilename()

openFilename(  $filename, string  $mode = 'r', boolean  $printOutput = TRUE) 

Parameters

$filename
string $mode
boolean $printOutput

Open System file on Fs, or get error message

 return self::$handler['fh']

error()

error(null  $ret = NULL) : null|string

Parameters

null $ret

Returns

null|string —

return system error

isLastBlock()

isLastBlock(  $blockCount) 

Parameters

$blockCount

seekToLastBlock()

seekToLastBlock() 

processFilename()

processFilename(  $lastBlockOnly = TRUE) 

Parameters

$lastBlockOnly

showLogs()

showLogs(  $file,   $name,   $print = TRUE) 

Parameters

$file
$name
$print

tail()

tail(  $file,   $changeBlockSize = '3128',   $print = TRUE) 

Parameters

$file
$changeBlockSize
$print