Overview   Package   Tree   Index 
Tv2 documentation
PREV  NEXT FRAMES  NO FRAME 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

tv2-engine
Class ctlErrors


class ctlErrors

Error handler (currently logs errors into files).

Authors:
Emilis Dambauskas (emilis@gildija.lt)
Version:
$Id: ctlErrors.class.php,v 1.1 2003/07/05 09:46:53 lunaticlt Exp $
Copyright:
2002–2003 Emilis Dambauskas under Artistic license

Field Summary
private string$dir
Directory where error logs are kept
private integer$err_count
Counts number of errors
private string$file_name
error log file of the day
private mixed$fp1
File handle for first error file
private mixed$fp2
File handle for second error file

Constructor Summary
void ctlErrors()
Constructor.

Method Summary
boolean add(string $message)
Adds error message


Field Detail

dir

private string $dir

Directory where error logs are kept


err_count

private integer $err_count

Counts number of errors


file_name

private string $file_name

error log file of the day


fp1

private mixed $fp1

File handle for first error file


fp2

private mixed $fp2

File handle for second error file


Constructor Detail

ctlErrors()

void ctlErrors()

Constructor. Sets $this->dir and $this->file_name

Uses the global variables:
$config (This is optional - if not found uses ./errors/ for $this->dir)

Method Detail

add()

boolean add(string $message)

Adds error message

Parameters:
message - error message
Returns:
always FALSE

 Overview   Package   Tree   Index 
Tv2 documentation
PREV  NEXT FRAMES  NO FRAME 
SUMMARY:  FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Submit a bug

This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)