Class FileReader

Description

Class that is used to read .mo files.

Located in /class/l10n/streams.class.php (line 34)


	
			
Variable Summary
integer $error
resource $_fd
integer $_length
integer $_pos
Method Summary
boolean FileReader (string $filename)
void close ()
integer currentpos ()
integer length ()
string read (integer $bytes)
integer seekto (integer $pos)
Variables
integer $error (line 57)

contains error codes

2 = File doesn't exist 3 = Can't read file

resource $_fd (line 44)

File descriptor

integer $_length (line 49)

File size

integer $_pos (line 39)

Current position in file

Methods
Constructor FileReader (line 64)

reads translation file and fills translation input object properties

  • return: false there is a problem with $filename
boolean FileReader (string $filename)
  • string $filename: path to file
close (line 124)

close translation file

void close ()
currentpos (line 109)

return current position

  • return: current position
integer currentpos ()
length (line 117)

return file length

  • return: file length
integer length ()
read (line 86)

reads data from current position

  • return: read data
string read (integer $bytes)
  • integer $bytes: number of bytes to read
seekto (line 99)

Moves to defined position in a file

  • return: current position
integer seekto (integer $pos)
  • integer $pos: position

Documentation generated on Sat, 07 Oct 2006 16:13:47 +0300 by phpDocumentor 1.3.0RC6