ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
BPMN2Parser.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
if
(
$_SERVER
[
'argc'
] < 5) {
5
die(
"Usage: "
. basename(__FILE__) .
" username password client infile [outfile]\n"
);
6
}
7
8
chdir(dirname(__FILE__));
9
chdir(
'../../../../'
);
10
11
include_once
'Services/Authentication/classes/class.ilAuthFactory.php'
;
12
ilAuthFactory::setContext
(ilAuthFactory::CONTEXT_CRON);
13
14
$_COOKIE
[
'ilClientId'
] =
$_SERVER
[
'argv'
][3];
15
$_POST
[
'username'
] =
$_SERVER
[
'argv'
][1];
16
$_POST
[
'password'
] =
$_SERVER
[
'argv'
][2];
17
18
include_once
'./include/inc.header.php'
;
19
20
echo
"\r\n[Invoking BPMN2-Parser]\r\n"
;
21
// -----------------------------------------------------------------------------
22
require_once dirname(__FILE__) .
'/classes/parser/class.ilBPMN2Parser.php'
;
23
$parser
=
new
ilBPMN2Parser
();
24
$infile_contents
= file_get_contents(
$_SERVER
[
'argv'
][4]);
25
$parse_result
=
$parser
->parseBPMN2XML(
$infile_contents
);
26
27
if
(
$_SERVER
[
'argv'
][5]) {
28
file_put_contents(
$_SERVER
[
'argv'
][5],
$parse_result
);
29
}
else
{
30
echo
$parse_result
;
31
}
32
echo
"\r\n[Finished Parsing]\r\n"
;
33
// -----------------------------------------------------------------------------
$infile_contents
$infile_contents
Definition:
BPMN2Parser.php:24
$parse_result
$parse_result
Definition:
BPMN2Parser.php:25
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:10
ilAuthFactory\setContext
static setContext($a_context)
set context
Definition:
class.ilAuthFactory.php:90
$parser
$parser
Definition:
BPMN2Parser.php:23
$_POST
$_POST['username']
Definition:
BPMN2Parser.php:15
$_COOKIE
$_COOKIE['ilClientId']
Definition:
BPMN2Parser.php:14
ilBPMN2Parser
Class ilBPMN2Parser.
Definition:
class.ilBPMN2Parser.php:12
Services
WorkflowEngine
BPMN2Parser.php
Generated on Sat Apr 26 2025 20:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)