◆ __createCoverageAndCondition()
ilLikeAdvancedSearch::__createCoverageAndCondition |
( |
| ) |
|
Definition at line 102 of file class.ilLikeAdvancedSearch.php.
102 : string
103 {
104 if ($this->options['lom_coverage']) {
105 $where = " AND (";
106
108 foreach ($this->query_parser->getQuotedWords() as $word) {
110 $where .= "OR";
111 }
112
113 $where .= $this->db->like('coverage', 'text', '%' . $word . '%');
114 }
115 $where .= ') ';
116 return $where;
117 }
118 return '';
119 }
References $counter.
◆ __createEntityWhereCondition()
ilLikeAdvancedSearch::__createEntityWhereCondition |
( |
| ) |
|
Definition at line 83 of file class.ilLikeAdvancedSearch.php.
83 : string
84 {
85 if ($this->options['lom_role_entry']) {
86 $where = " WHERE (";
87
89 foreach ($this->query_parser->getQuotedWords() as $word) {
91 $where .= "OR";
92 }
93
94 $where .= $this->db->like('entity', 'text', '%' . $word . '%');
95 }
96 $where .= ') ';
97 return $where;
98 }
99 return '';
100 }
References $counter.
◆ __createKeywordWhereCondition()
ilLikeAdvancedSearch::__createKeywordWhereCondition |
( |
| ) |
|
Definition at line 48 of file class.ilLikeAdvancedSearch.php.
48 : string
49 {
50 $where = " WHERE (";
51
53 foreach ($this->query_parser->getQuotedWords() as $word) {
55 $where .= "OR";
56 }
57
58 $where .= $this->db->like('keyword', 'text', '%' . $word . '%');
59 }
60 $where .= ') ';
61 return $where;
62 }
References $counter.
◆ __createLifecycleWhereCondition()
ilLikeAdvancedSearch::__createLifecycleWhereCondition |
( |
| ) |
|
Definition at line 64 of file class.ilLikeAdvancedSearch.php.
64 : string
65 {
66 if ($this->options['lom_version']) {
67 $where = " WHERE (";
68
70 foreach ($this->query_parser->getQuotedWords() as $word) {
72 $where .= "OR";
73 }
74
75 $where .= $this->db->like('meta_version', 'text', '%' . $word . '%');
76 }
77 $where .= ') ';
78 return $where;
79 }
80 return '';
81 }
References $counter.
◆ __createObjectPropertiesWhereCondition()
ilLikeAdvancedSearch::__createObjectPropertiesWhereCondition |
( |
string ... |
$fields | ) |
|
Definition at line 121 of file class.ilLikeAdvancedSearch.php.
121 : string
122 {
123 $concat_array = [];
125 $concat_array[] = [$field, 'text'];
126 }
127 $concat = $this->db->concat($concat_array);
128
129 $where = " WHERE (";
130
132 foreach ($this->query_parser->getQuotedWords() as $word) {
134 $where .= "OR";
135 }
136
137 $where .= $this->db->like($concat, 'text', '%' . $word . '%');
138 }
139 $where .= ') ';
140
141 return $where;
142 }
References $counter, and ilAbstractSearch\$fields.
◆ __createTaxonWhereCondition()
ilLikeAdvancedSearch::__createTaxonWhereCondition |
( |
| ) |
|
Definition at line 29 of file class.ilLikeAdvancedSearch.php.
29 : string
30 {
31 if ($this->options['lom_taxon']) {
32 $where = " WHERE (";
33
35 foreach ($this->query_parser->getQuotedWords() as $word) {
37 $where .= "OR";
38 }
39
40 $where .= $this->db->like('taxon', 'text', '%' . $word . '%');
41 }
42 $where .= ') ';
43 return $where;
44 }
45 return '';
46 }
References $counter.
The documentation for this class was generated from the following file: