mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
[example] add force group by
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@48 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
4af5ffffad
commit
1c0e3ad485
11
setup.php
11
setup.php
@ -221,6 +221,17 @@ function plugin_example_addLeftJoin($type,$ref_table,$new_table,$linkfield){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function plugin_example_forceGroupBy($type){
|
||||||
|
switch ($type){
|
||||||
|
case PLUGIN_EXAMPLE_TYPE :
|
||||||
|
// Force add GROUP BY IN REQUEST
|
||||||
|
return true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function plugin_example_addWhere($link,$nott,$type,$ID,$val){
|
function plugin_example_addWhere($link,$nott,$type,$ID,$val){
|
||||||
global $SEARCH_OPTION;
|
global $SEARCH_OPTION;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user