Esempio n. 1
0
 /**
  * @param toba_registro_conflicto $conflicto
  * @param $path el path del archivo donde se encuentra el registro conflictivo
  */
 function add_conflicto($conflicto, $path)
 {
     $tipo = $conflicto->get_tipo();
     $archivo = basename($path);
     $this->conflictos[$archivo][$tipo][] = $conflicto;
     $this->raw_conflictos[] = $conflicto;
 }
 function __construct($registro, $columna, $valor_actual)
 {
     parent::__construct($registro);
     $this->tipo = toba_registro_conflicto::warning;
     $this->numero = 5;
     $this->columna = $columna;
     $this->valor_actual = $valor_actual == toba_personalizacion::nulo ? 'null' : $valor_actual;
 }
 function __construct($registro, $db_error)
 {
     parent::__construct($registro);
     $this->numero = 2;
     $this->db_error = $db_error;
     $sql_state = $this->db_error->get_sqlstate();
     switch ($sql_state) {
         case 'db_23503':
             $this->tipo = toba_registro_conflicto::warning;
             break;
         default:
             $this->tipo = toba_registro_conflicto::fatal;
     }
 }
 function __construct($registro)
 {
     parent::__construct($registro);
     $this->tipo = toba_registro_conflicto::fatal;
     $this->numero = 3;
 }
Esempio n. 5
0
 protected function io_conflicto_irresoluble(consola $consola, toba_registro_conflicto $conflicto)
 {
     $consola->mensaje("Se encontro un error irrecuperable, se abortará la importación de esta tarea. El error fue: {$conflicto->get_descripcion()}.");
 }