◆ __construct()
ilLikeAdvancedSearch::__construct |
( |
|
$qp | ) |
|
◆ __createCoverageAndCondition()
ilLikeAdvancedSearch::__createCoverageAndCondition |
( |
| ) |
|
Definition at line 137 of file class.ilLikeAdvancedSearch.php.
138 {
140
142
143 if ($this->options['lom_coverage']) {
144 $where = " AND (";
145
146 $counter = 0;
147 foreach ($this->query_parser->getQuotedWords() as $word) {
148 if ($counter++) {
149 $where .= "OR";
150 }
151
152 $where .=
$ilDB->like(
'coverage',
'text',
'%' . $word .
'%');
153 }
154 $where .= ') ';
155 return $where;
156 }
157 return '';
158 }
References $DIC, and $ilDB.
◆ __createEntityWhereCondition()
ilLikeAdvancedSearch::__createEntityWhereCondition |
( |
| ) |
|
Definition at line 114 of file class.ilLikeAdvancedSearch.php.
115 {
117
119
120 if ($this->options['lom_role_entry']) {
121 $where = " WHERE (";
122
123 $counter = 0;
124 foreach ($this->query_parser->getQuotedWords() as $word) {
125 if ($counter++) {
126 $where .= "OR";
127 }
128
129 $where .=
$ilDB->like(
'entity',
'text',
'%' . $word .
'%');
130 }
131 $where .= ') ';
132 return $where;
133 }
134 return '';
135 }
References $DIC, and $ilDB.
◆ __createKeywordWhereCondition()
ilLikeAdvancedSearch::__createKeywordWhereCondition |
( |
| ) |
|
Definition at line 71 of file class.ilLikeAdvancedSearch.php.
72 {
74
76
77 $where = " WHERE (";
78
79 $counter = 0;
80 foreach ($this->query_parser->getQuotedWords() as $word) {
81 if ($counter++) {
82 $where .= "OR";
83 }
84
85 $where .=
$ilDB->like(
'keyword',
'text',
'%' . $word .
'%');
86 }
87 $where .= ') ';
88 return $where;
89 }
References $DIC, and $ilDB.
◆ __createLifecycleWhereCondition()
ilLikeAdvancedSearch::__createLifecycleWhereCondition |
( |
| ) |
|
Definition at line 91 of file class.ilLikeAdvancedSearch.php.
92 {
94
96
97 if ($this->options['lom_version']) {
98 $where = " WHERE (";
99
100 $counter = 0;
101 foreach ($this->query_parser->getQuotedWords() as $word) {
102 if ($counter++) {
103 $where .= "OR";
104 }
105
106 $where .=
$ilDB->like(
'meta_version',
'text',
'%' . $word .
'%');
107 }
108 $where .= ') ';
109 return $where;
110 }
111 return '';
112 }
References $DIC, and $ilDB.
◆ __createTaxonWhereCondition()
ilLikeAdvancedSearch::__createTaxonWhereCondition |
( |
| ) |
|
Definition at line 48 of file class.ilLikeAdvancedSearch.php.
49 {
51
53
54 if ($this->options['lom_taxon']) {
55 $where = " WHERE (";
56
57 $counter = 0;
58 foreach ($this->query_parser->getQuotedWords() as $word) {
59 if ($counter++) {
60 $where .= "OR";
61 }
62
63 $where .=
$ilDB->like(
'taxon',
'text',
'%' . $word .
'%');
64 }
65 $where .= ') ';
66 return $where;
67 }
68 return '';
69 }
References $DIC, and $ilDB.
◆ __createTitleDescriptionWhereCondition()
ilLikeAdvancedSearch::__createTitleDescriptionWhereCondition |
( |
| ) |
|
Definition at line 160 of file class.ilLikeAdvancedSearch.php.
161 {
163
165
166 $concat =
$ilDB->concat(
167 array(
168 array('title','text'),
169 array('description','text'))
170 );
171
172 $where = " WHERE (";
173
174 $counter = 0;
175 foreach ($this->query_parser->getQuotedWords() as $word) {
176 if ($counter++) {
177 $where .= "OR";
178 }
179
180 $where .=
$ilDB->like($concat,
'text',
'%' . $word .
'%');
181 }
182 $where .= ') ';
183
184 return $where;
185 }
References $DIC, and $ilDB.
The documentation for this class was generated from the following file: