ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilMailLuceneQueryParser.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilMailLuceneQueryParser
extends
ilLuceneQueryParser
26
{
27
protected
array
$fields
= [];
28
29
public
function
parse
(): void
30
{
31
if
($this->
getFields
()) {
32
$queried_fields = [];
33
foreach
($this->
getFields
() as $field => $status) {
34
if
($status) {
35
$queried_fields[] = $field .
':'
.
$this->query_string
;
36
}
37
}
38
39
if
($queried_fields) {
40
$this->parsed_query = implode(
' OR '
, $queried_fields);
41
}
else
{
42
$this->parsed_query =
$this->query_string
;
43
}
44
}
else
{
45
$this->parsed_query =
$this->query_string
;
46
}
47
}
48
49
public
function
setFields
(array $fields): void
50
{
51
$this->
fields
=
$fields
;
52
}
53
54
public
function
getFields
(): array
55
{
56
return
$this->fields
;
57
}
58
}
ilMailLuceneQueryParser\parse
parse()
Definition:
class.ilMailLuceneQueryParser.php:29
fields
$errors fields
Definition:
imgupload.php:67
ilMailLuceneQueryParser\$fields
array $fields
Definition:
class.ilMailLuceneQueryParser.php:27
ilMailLuceneQueryParser\setFields
setFields(array $fields)
Definition:
class.ilMailLuceneQueryParser.php:49
ilMailLuceneQueryParser\getFields
getFields()
Definition:
class.ilMailLuceneQueryParser.php:54
ilLuceneQueryParser
Lucene query parser.
Definition:
class.ilLuceneQueryParser.php:35
ilMailLuceneQueryParser
Definition:
class.ilMailLuceneQueryParser.php:25
ilLuceneQueryParser\$query_string
string $query_string
Definition:
class.ilLuceneQueryParser.php:37
Services
Mail
classes
class.ilMailLuceneQueryParser.php
Generated on Fri Apr 4 2025 22:02:50 for ILIAS by
1.8.13 (using
Doxyfile
)