CMS
Version 3.9
import_background.inc
Go to the documentation of this file.
1
<?php
2
Fakoli::using
(
"process"
);
3
4
if
(!
$process
)
5
{
6
// We are in a user request - spawn the background process and return the ID
7
8
$process
=
new
ProcessManager
();
9
$params = [
"xml_import_file_path"
=>
$_SESSION
[
"xml_import_file_path"
],
10
"xml_import_components"
=>
$_SESSION
[
"xml_import_components"
]
11
];
12
echo
$process
->run(
"/action/component/import_background"
, $params);
13
}
14
else
15
{
16
// We are in the spawned background process - begin indexing the library
17
18
$mgr
=
new
SerializationManager
();
19
$mgr
->importBackground();
20
}
21
?>
$mgr
$mgr
Definition:
authentication_token_form.inc:55
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
ProcessManager
Provides a central management class for event handlers and common functionality for the process compo...
Definition:
process_manager.inc:46
SerializationManager
SerializationManager handles import/export of DataItems via an XML file.
Definition:
serialization_manager.inc:48
$_SESSION
$_SESSION["useMobile"]
Definition:
override.inc:7
$process
$process
Definition:
run.php:54
code
cms.sonjara.com
cms
components
component
handlers
import_background.inc
Generated on Tue Mar 23 2021 15:36:12 for CMS by
1.9.1