ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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:52
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
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
php
Services
Mail
classes
class.ilMailLuceneQueryParser.php
Generated on Fri Jan 24 2025 19:01:11 for ILIAS by
1.8.13 (using
Doxyfile
)