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