ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
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.ilMailLuceneQueryParser.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once
'Services/Search/classes/Lucene/class.ilLuceneQueryParser.php'
;
5
11
class
ilMailLuceneQueryParser
extends
ilLuceneQueryParser
12
{
16
protected
$fields
= array();
17
21
public
function
parse
()
22
{
23
if
($this->
getFields
()) {
24
$queried_fields = array();
25
foreach
($this->
getFields
() as $field => $status) {
26
if
($status) {
27
$queried_fields[] = $field .
':'
.
$this->query_string
;
28
}
29
}
30
31
if
($queried_fields) {
32
$this->parsed_query = implode(
' OR '
, $queried_fields);
33
}
else
{
34
$this->parsed_query =
$this->query_string
;
35
}
36
}
else
{
37
$this->parsed_query =
$this->query_string
;
38
}
39
}
40
44
public
function
setFields
(
$fields
)
45
{
46
$this->
fields
=
$fields
;
47
}
48
52
public
function
getFields
()
53
{
54
return
$this->fields
;
55
}
56
}
ilLuceneQueryParser\$query_string
$query_string
Definition:
class.ilLuceneQueryParser.php:37
ilMailLuceneQueryParser\setFields
setFields($fields)
Definition:
class.ilMailLuceneQueryParser.php:44
ilMailLuceneQueryParser\parse
parse()
Definition:
class.ilMailLuceneQueryParser.php:21
fields
$errors fields
Definition:
imgupload.php:51
ilMailLuceneQueryParser\getFields
getFields()
Definition:
class.ilMailLuceneQueryParser.php:52
ilLuceneQueryParser
Lucene query parser.
Definition:
class.ilLuceneQueryParser.php:35
ilMailLuceneQueryParser
Definition:
class.ilMailLuceneQueryParser.php:11
ilMailLuceneQueryParser\$fields
$fields
Definition:
class.ilMailLuceneQueryParser.php:16
Services
Mail
classes
class.ilMailLuceneQueryParser.php
Generated on Thu Apr 3 2025 21:01:24 for ILIAS by
1.8.13 (using
Doxyfile
)