Commit 415a91ff authored by Jonas's avatar Jonas

Added missing PHPDocs. Added missing test files.

parent 6059f7f2
...@@ -970,9 +970,16 @@ class MysqliDb ...@@ -970,9 +970,16 @@ class MysqliDb
return $success; return $success;
} }
/**
public function loadXML($importTable, $importFile, $importSettings = * This method is usefull for importing XML files into a specific table.
Array("linesToIgnore" => 0)) * Check out the LOAD XML syntax for your MySQL server.
*
* @author Jonas Barascu
* @param string $importTable The table in which the data will be imported to.
* @param string $importFile The file which contains the .XML data.
* @return boolean Returns true if the import succeeded, false if it failed.
*/
public function loadXML($importTable, $importFile, $importSettings = Array("linesToIgnore" => 0))
{ {
// Define default success var // Define default success var
$success = false; $success = false;
...@@ -2080,4 +2087,4 @@ class MysqliDb ...@@ -2080,4 +2087,4 @@ class MysqliDb
} }
} }
// END class // END class
\ No newline at end of file
id;username;name
3;simon;Simon Jarred
4;martin;Martin Fuel
5;example;Example Name 1
6;example2;Example Name 2
7;example3;Example Name 4
\ No newline at end of file
<list>
<user id="1" username="Kapek" name="Sainnouine" />
<user id="2" username="Sajon" name="Rondela" />
<user id="3">
<username>Likame</username>
<name>Datataa</name>
</user>
</list>
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Erstellungszeit: 27. Jun 2016 um 14:21
-- Server-Version: 10.1.13-MariaDB
-- PHP-Version: 5.6.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Datenbank: `db_test`
--
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(32) NOT NULL,
`name` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Daten für Tabelle `users`
--
INSERT INTO `users` (`id`, `username`, `name`) VALUES
(1, 'test_1', 'John Doe'),
(2, 'test_2', 'Test User');
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment