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
class.ilMailSearchLuceneResultParser.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9
class
ilMailSearchLuceneResultParser
10
{
14
protected
$result
;
15
19
protected
$xml
;
20
25
public
function
__construct
(
ilMailSearchResult
$result
,
$xml
)
26
{
27
$this->result =
$result
;
28
$this->xml =
$xml
;
29
}
30
34
public
function
getXml
()
35
{
36
return
$this->xml
;
37
}
38
42
public
function
getResult
()
43
{
44
return
$this->result
;
45
}
46
50
public
function
parse()
51
{
52
if
(!strlen($this->
getXml
())) {
53
return
;
54
}
55
56
$hits =
new
SimpleXMLElement($this->
getXml
());
57
foreach
($hits->children() as $user) {
58
foreach
($user->children() as $item) {
62
$fields = array();
63
foreach
($item->children() as $field) {
67
$name
= (string) $field[
'name'
];
68
$content = (string) $field;
69
$fields[] = array(
70
$name
, $content
71
);
72
}
73
$this->
getResult
()->addItem((
int
) $item[
'id'
], $fields);
74
}
75
}
76
}
77
}
ilMailSearchLuceneResultParser\$xml
$xml
Definition:
class.ilMailSearchLuceneResultParser.php:19
ilMailSearchLuceneResultParser
Definition:
class.ilMailSearchLuceneResultParser.php:9
ilMailSearchLuceneResultParser\__construct
__construct(ilMailSearchResult $result, $xml)
Definition:
class.ilMailSearchLuceneResultParser.php:25
ilMailSearchLuceneResultParser\$result
$result
Definition:
class.ilMailSearchLuceneResultParser.php:14
$name
if($format !==null) $name
Definition:
metadata.php:230
ilMailSearchLuceneResultParser\getResult
getResult()
Definition:
class.ilMailSearchLuceneResultParser.php:42
ilMailSearchLuceneResultParser\getXml
getXml()
Definition:
class.ilMailSearchLuceneResultParser.php:34
ilMailSearchResult
Definition:
class.ilMailSearchResult.php:9
Services
Mail
classes
class.ilMailSearchLuceneResultParser.php
Generated on Thu Apr 3 2025 20:01:08 for ILIAS by
1.8.13 (using
Doxyfile
)