-
Notifications
You must be signed in to change notification settings - Fork 7
/
CubevizHelper.php
31 lines (28 loc) · 984 Bytes
/
CubevizHelper.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
*
*/
class CubevizHelper extends OntoWiki_Component_Helper
{
/**
*
*/
public function __construct()
{
$owApp = OntoWiki::getInstance();
$translate = $owApp->translate;
$extrasMenu = OntoWiki_Menu_Registry::getInstance()->getMenu('application')->getSubMenu('Extras');
// If a model is selected, add entry to analyze action
if (true === isset(OntoWiki::getInstance()->selectedModel)) {
$extrasMenu->setEntry($translate->_('ApplicationExtrasMenu_Label'), (string) new OntoWiki_Url(array(
'controller' => 'cubeviz',
'action' => 'analyze'),
array()));
}
// add entry to comparing action
$extrasMenu->setEntry($translate->_('ApplicationExtrasMenu_ComparingLabel'), (string) new OntoWiki_Url(array(
'controller' => 'cubeviz',
'action' => 'compare'),
array()));
}
}