◆ __construct()
ilArrayTableDataParser::__construct |
( |
|
$data_dir | ) |
|
◆ startParsing()
ilArrayTableDataParser::startParsing |
( |
| ) |
|
Definition at line 19 of file class.ilArrayTableDataParser.php.
References $file, $ilDB, $ilLog, $row, $rows, and $table.
23 if (!$dp = opendir($this->dir)) {
24 $ilLog->write(__METHOD__ .
': Cannot open data directory: ' . $this->dir);
28 $ilLog->write(__METHOD__ .
': Reading table data from: ' . $this->dir);
29 while (
false !== (
$file = readdir($dp))) {
30 $ilLog->write(__METHOD__ .
': Handling file: ' .
$file);
31 if (substr($file, -5) !=
'.data') {
32 $ilLog->write(__METHOD__ .
': Ignoring file: ' . $file);
36 $content = file_get_contents($this->dir . DIRECTORY_SEPARATOR . $file);
38 $ilLog->write(__METHOD__ .
': Reading inserts of ' . $this->dir .
'/' . $file);
39 $content = unserialize($content);
41 if (!is_array($content)) {
42 $ilLog->write(__METHOD__ .
': No entries found in ' . $this->dir .
'/' . $file);
48 $ilDB->insert(
$table, $row);
51 if (function_exists(
'memory_get_usage')) {
52 $ilLog->write(__METHOD__ .
': Memory usage ' . memory_get_usage(
true));
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
if(empty($password)) $table
◆ $dir
ilArrayTableDataParser::$dir = null |
|
protected |
◆ $value
ilArrayTableDataParser::$value = '' |
|
protected |
The documentation for this class was generated from the following file: