mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
Permit to use addDefaultXXX for plugins in search engine see #2547
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@149 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
ed351bce69
commit
0658e5c00f
3
hook.php
3
hook.php
@ -109,6 +109,7 @@ function plugin_example_addDefaultJoin($type, $ref_table, &$already_link_tables)
|
||||
case "MyType" :
|
||||
return Search::addLeftJoin($type, $ref_table, $already_link_tables,
|
||||
"newtable", "linkfield");
|
||||
break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
@ -121,6 +122,7 @@ function plugin_example_addDefaultSelect($type) {
|
||||
// case "PluginExampleExample" :
|
||||
case "MyType" :
|
||||
return "`mytable`.`myfield` = 'myvalue' AS MYNAME, ";
|
||||
break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
@ -133,6 +135,7 @@ function plugin_example_addDefaultWhere($type) {
|
||||
// case "PluginExampleExample" :
|
||||
case "MyType" :
|
||||
return " `mytable`.`myfield` = 'myvalue' ";
|
||||
break;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user