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:
moyooo 2010-12-23 09:18:56 +00:00
parent ed351bce69
commit 0658e5c00f

View File

@ -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 "";
}