*
  • int_error - Se trata de un flag de error. * *
  • *
  • str_descError - Contiene la descripción del error a mostrar
  • * * * @author Raquel Borjabad y Toni Félix * @version $Id: IgepError.php,v 1.2 2004-07-06 17:43:17 afelixf Exp $ */ class IgepError{ /** * flag de error * * @var integer int_flag */ var $int_flag; /** * código de error * * @var string str_codigoError */ var $str_codigoError; /** * Descripción del error * * @var string str_fichero */ var $str_fichero; /** * Descripción del error * * @var string str_funcion */ var $str_funcion; /** * DB error * * @var objeto obj_dbError */ var $obj_dbError; /** * Constructor * * @access public */ function IgepError(){ $this->limpiarError(); } /** * Para indicar la existencia de un error. Activa el flag y * almacena el valor del texto del error. En * * @access public * @param string $descError */ function setError($codigoError,$fichero,$funcion,$dbError="") { $this->int_flag = 1; $this->str_codigoError = $codigoError; $this->str_fichero = $fichero; $this->str_funcion = $funcion; $this->obj_dbError=$dbError; } /** * Desactiva el flag de error. * * @access public */ function limpiarError() { $this->int_flag = 0; $this->str_codigoError = ""; unset($this->str_funcion); unset($this->str_fichero); unset($this->obj_dbError); } /** * Devuelve el codigo de error del error almacenado. * * @access public * @return integer */ function getError() { return $this->str_codigoError; } /** * Devuelve el flag de error. * * @access public * @return integer */ function hayError() { return $this->int_flag; } }//Fin de IgepError ?>