◆ __createContributeWhereCondition()
ilLikeMetaDataSearch::__createContributeWhereCondition |
( |
| ) |
|
Definition at line 59 of file class.ilLikeMetaDataSearch.php.
60 {
62
63 $concat = ' entity ';
64 $where = " WHERE (";
66 foreach ($this->query_parser->getQuotedWords() as $word) {
68 $where .= "OR";
69 }
70 #$where .= $concat;
71 #$where .= (" LIKE ('%".$word."%')");
72 $where .=
$ilDB->like($concat,
'text',
'%' . $word .
'%');
73 }
74 return $where . ') ';
75 }
References $counter, and $ilDB.
◆ __createDescriptionWhereCondition()
ilLikeMetaDataSearch::__createDescriptionWhereCondition |
( |
| ) |
|
Definition at line 106 of file class.ilLikeMetaDataSearch.php.
107 {
109
110 $concat = ' description ';
111 $where = " WHERE (";
113 foreach ($this->query_parser->getQuotedWords() as $word) {
115 $where .= "OR";
116 }
117 #$where .= $concat;
118 #$where .= (" LIKE ('%".$word."%')");
119 $where .=
$ilDB->like($concat,
'text',
'%' . $word .
'%');
120 }
121 return $where . ') ';
122 }
References $counter, and $ilDB.
◆ __createKeywordWhereCondition()
ilLikeMetaDataSearch::__createKeywordWhereCondition |
( |
| ) |
|
Definition at line 41 of file class.ilLikeMetaDataSearch.php.
42 {
44
45 $concat = ' keyword ';
46 $where = " WHERE (";
48 foreach ($this->query_parser->getQuotedWords() as $word) {
50 $where .= "OR";
51 }
52 $where .=
$ilDB->like($concat,
'text',
'%' . $word .
'%');
53 #$where .= $concat;
54 #$where .= (" LIKE ('%".$word."%')");
55 }
56 return $where . ') ';
57 }
References $counter, and $ilDB.
◆ __createTitleWhereCondition()
ilLikeMetaDataSearch::__createTitleWhereCondition |
( |
| ) |
|
Definition at line 76 of file class.ilLikeMetaDataSearch.php.
77 {
79
80
81
82
83
84
85
86 $concat =
$ilDB->concat(
87 array(
88 array('title','text'),
89 array('coverage','text'))
90 );
91
92
93 $where = " WHERE (";
95 foreach ($this->query_parser->getQuotedWords() as $word) {
97 $where .= "OR";
98 }
99 #$where .= $concat;
100 #$where .= (" LIKE ('%".$word."%')");
101 $where .=
$ilDB->like($concat,
'text',
'%' . $word .
'%');
102 }
103 return $where . ' )';
104 }
References $counter, and $ilDB.
The documentation for this class was generated from the following file: