It's possible to display a report in my plugin from other plugin?

Hello, I’m developing a plugin for Piwik, and I don’t know if it’s possible to display a report created in “Plugin A” in “Plugin B”.
Thank you in advance


I don’t really understand your question, if you just want to display a specific report in your menu. Let’s say you want to add VisitsSummary to a menu created in your plugin. You have to go in that case to Plugins\VisitsSummary\Menu.php and add this simple line to the function configureReportingMenu :

$menu->addItem(‘Name of your menu’, ‘Name you want to give to this report in your menu’, array(‘module’ => ‘VisitsSummary’, ‘action’ => ‘index’), order of the report);

Otherwise, I don’t see other solution but to copy the entire code of the plugin or rename it.

Hope that helped you !

Thank’s for the answer. I solved my problem using that:

[i]use Piwik\Plugins\PluginB\Reports\MyReport;

$view->report = $this->renderReport (new MyReport ());[/i]

Now, I have another question, how I can change the date used for the report?