ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
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
k
l
m
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
{
25
$queried_fields = array();
26
foreach
($this->
getFields
() as $field => $status)
27
{
28
if
($status)
29
{
30
$queried_fields[] = $field.
':'
.
$this->query_string
;
31
}
32
}
33
34
if
($queried_fields)
35
{
36
$this->parsed_query = implode(
' OR '
, $queried_fields);
37
}
38
else
39
{
40
$this->parsed_query =
$this->query_string
;
41
}
42
}
43
else
44
{
45
$this->parsed_query =
$this->query_string
;
46
}
47
}
48
52
public
function
setFields
(
$fields
)
53
{
54
$this->
fields
=
$fields
;
55
}
56
60
public
function
getFields
()
61
{
62
return
$this->fields
;
63
}
64
}
ilLuceneQueryParser\$query_string
$query_string
Definition:
class.ilLuceneQueryParser.php:37
ilMailLuceneQueryParser\setFields
setFields($fields)
Definition:
class.ilMailLuceneQueryParser.php:52
ilMailLuceneQueryParser\parse
parse()
Definition:
class.ilMailLuceneQueryParser.php:21
fields
$errors fields
Definition:
imgupload.php:48
ilMailLuceneQueryParser\getFields
getFields()
Definition:
class.ilMailLuceneQueryParser.php:60
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 Mon Mar 31 2025 19:00:47 for ILIAS by
1.8.13 (using
Doxyfile
)