Implemented the capability to modify queries by the mean of a plugin (beta)

SVN:1.2[1840]
This commit is contained in:
Romain Quetiez
2012-02-03 17:16:27 +00:00
parent e623467782
commit 493ab80965
8 changed files with 286 additions and 75 deletions

View File

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