Class FileReader

Description

Class that is used to read .mo files.

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


	
			
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 58)

contains error codes

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

resource $_fd (line 45)

File descriptor

integer $_length (line 50)

File size

integer $_pos (line 40)

Current position in file

Methods
Constructor FileReader (line 65)

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 125)

close translation file

void close ()
currentpos (line 110)

return current position

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

return file length

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

reads data from current position

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

Moves to defined position in a file

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

Documentation generated on Mon, 13 Jan 2020 04:23:38 +0100 by phpDocumentor 1.4.3