mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Implemented the capability to modify queries by the mean of a plugin (beta)
SVN:1.2[1840]
This commit is contained in:
@@ -97,6 +97,9 @@ function ShowExamples($oP, $sExpression)
|
||||
$sOperation = utils::ReadParam('operation', 'menu');
|
||||
$oAppContext = new ApplicationContext();
|
||||
|
||||
ApplicationContext::SetPluginProperty('QueryLocalizerPlugin', 'language_code', UserRights::GetUserLanguage());
|
||||
ApplicationContext::SetPluginProperty('QueryLocalizerPlugin', 'language_code', 'FR FR');
|
||||
|
||||
$oP = new iTopWebPage(Dict::S('UI:RunQuery:Title'));
|
||||
|
||||
// Main program
|
||||
@@ -201,4 +204,8 @@ catch(Exception $e)
|
||||
}
|
||||
|
||||
$oP->output();
|
||||
///$oFilter = new DBObjectSearch('Server');
|
||||
///echo "<pre>\n";
|
||||
///print_r($oFilter->GetModifierProperties('QueryLocalizerPlugin'));
|
||||
///echo "</pre>\n";
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user