◆ __construct()
ilLikeAdvancedSearch::__construct |
( |
|
$qp | ) |
|
◆ __createCoverageAndCondition()
ilLikeAdvancedSearch::__createCoverageAndCondition |
( |
| ) |
|
Definition at line 129 of file class.ilLikeAdvancedSearch.php.
130 {
132
133 if ($this->options['lom_coverage']) {
134 $where = " AND (";
135
137 foreach ($this->query_parser->getQuotedWords() as $word) {
139 $where .= "OR";
140 }
141
142 $where .=
$ilDB->like(
'coverage',
'text',
'%' . $word .
'%');
143 }
144 $where .= ') ';
145 return $where;
146 }
147 return '';
148 }
References $counter, and $ilDB.
◆ __createEntityWhereCondition()
ilLikeAdvancedSearch::__createEntityWhereCondition |
( |
| ) |
|
Definition at line 108 of file class.ilLikeAdvancedSearch.php.
109 {
111
112 if ($this->options['lom_role_entry']) {
113 $where = " WHERE (";
114
116 foreach ($this->query_parser->getQuotedWords() as $word) {
118 $where .= "OR";
119 }
120
121 $where .=
$ilDB->like(
'entity',
'text',
'%' . $word .
'%');
122 }
123 $where .= ') ';
124 return $where;
125 }
126 return '';
127 }
References $counter, and $ilDB.
◆ __createKeywordWhereCondition()
ilLikeAdvancedSearch::__createKeywordWhereCondition |
( |
| ) |
|
Definition at line 69 of file class.ilLikeAdvancedSearch.php.
70 {
72
73 $where = " WHERE (";
74
76 foreach ($this->query_parser->getQuotedWords() as $word) {
78 $where .= "OR";
79 }
80
81 $where .=
$ilDB->like(
'keyword',
'text',
'%' . $word .
'%');
82 }
83 $where .= ') ';
84 return $where;
85 }
References $counter, and $ilDB.
◆ __createLifecycleWhereCondition()
ilLikeAdvancedSearch::__createLifecycleWhereCondition |
( |
| ) |
|
Definition at line 87 of file class.ilLikeAdvancedSearch.php.
88 {
90
91 if ($this->options['lom_version']) {
92 $where = " WHERE (";
93
95 foreach ($this->query_parser->getQuotedWords() as $word) {
97 $where .= "OR";
98 }
99
100 $where .=
$ilDB->like(
'meta_version',
'text',
'%' . $word .
'%');
101 }
102 $where .= ') ';
103 return $where;
104 }
105 return '';
106 }
References $counter, and $ilDB.
◆ __createTaxonWhereCondition()
ilLikeAdvancedSearch::__createTaxonWhereCondition |
( |
| ) |
|
Definition at line 48 of file class.ilLikeAdvancedSearch.php.
49 {
51
52 if ($this->options['lom_taxon']) {
53 $where = " WHERE (";
54
56 foreach ($this->query_parser->getQuotedWords() as $word) {
58 $where .= "OR";
59 }
60
61 $where .=
$ilDB->like(
'taxon',
'text',
'%' . $word .
'%');
62 }
63 $where .= ') ';
64 return $where;
65 }
66 return '';
67 }
References $counter, and $ilDB.
◆ __createTitleDescriptionWhereCondition()
ilLikeAdvancedSearch::__createTitleDescriptionWhereCondition |
( |
| ) |
|
Definition at line 150 of file class.ilLikeAdvancedSearch.php.
151 {
153
154 $concat =
$ilDB->concat(
155 array(
156 array('title','text'),
157 array('description','text'))
158 );
159
160 $where = " WHERE (";
161
163 foreach ($this->query_parser->getQuotedWords() as $word) {
165 $where .= "OR";
166 }
167
168 $where .=
$ilDB->like($concat,
'text',
'%' . $word .
'%');
169 }
170 $where .= ') ';
171
172 return $where;
173 }
References $counter, and $ilDB.
The documentation for this class was generated from the following file: