◆ __createWhereCondition()
ilLikeUserDefinedFieldSearch::__createWhereCondition |
( |
| ) |
|
Definition at line 34 of file class.ilLikeUserDefinedFieldSearch.php.
References $counter, $ilDB, and ilAbstractSearch\getFields().
41 $and =
" WHERE field_id = " . $ilDB->quote((
int) substr($field, 2),
"integer") .
" AND ( ";
43 foreach ($this->query_parser->getQuotedWords() as $word) {
48 if (strpos($word,
'^') === 0) {
49 $and .= $ilDB->like(
"value",
"text", substr($word, 1) .
"%");
51 $and .= $ilDB->like(
"value",
"text",
"%" . $word .
"%");
getFields()
Get fields to search.
◆ setFields()
ilLikeUserDefinedFieldSearch::setFields |
( |
|
$a_fields | ) |
|
- Parameters
-
Definition at line 25 of file class.ilLikeUserDefinedFieldSearch.php.
References array.
27 foreach ($a_fields as $field) {
28 $fields[] =
'f_' . $field;
30 parent::setFields($fields ? $fields :
array());
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: