protected function get_diferencia() { $tablas = array(); foreach (toba_db_tablas_proyecto::get_lista() as $tabla) { if ($this->tablas_db->corresponde_comparar($tabla)) { $tablas[$tabla] = $this->comparar($tabla); } } array_borrar_subarrays_vacios($tablas); return $tablas; }
private function exportar_tablas() { $this->manejador_interface->mensaje("Exportando datos generales", false); toba_manejador_archivos::crear_arbol_directorios($this->get_dir_tablas()); foreach (toba_db_tablas_proyecto::get_lista() as $tabla) { $contenido = $this->get_contenido_tabla($tabla); if (trim($contenido) != '') { $this->guardar_archivo($this->get_dir_tablas() . '/' . $tabla . '.sql', $contenido); } $this->manejador_interface->progreso_avanzar(); } $this->manejador_interface->progreso_fin(); }