Cherry pick of PM-3193 to branch 3.0.1.4

This commit is contained in:
Julio Cesar Laura
2015-09-16 14:21:16 -04:00
committed by Enrique Ponce De Leon
parent 05ef7afbed
commit 0476ca2bba
4 changed files with 182 additions and 66 deletions

View File

@@ -379,6 +379,17 @@ class PMPlugin
$oPluginRegistry =& PMPluginRegistry::getSingleton();
$oPluginRegistry->enableRestService($this->sNamespace, $enable);
}
/**
* With this function we can register new options to designer menu
* param string $menuOptionsFile
* @return void
*/
public function registerDesignerNewOption($menuOptionsFile)
{
$oPluginRegistry =& PMPluginRegistry::getSingleton();
$oPluginRegistry->registerDesignerNewOption($this->sNamespace, $menuOptionsFile);
}
}
class menuDetail
@@ -718,3 +729,21 @@ class cronFile
$this->cronFile = $cronFile;
}
}
class menuOptionFile
{
public $namespace;
public $menuOptionFile;
/**
* This function is the constructor of the cronFile class
* param string $namespace
* param string $menuOptionFile
* @return void
*/
public function __construct($namespace, $menuOptionFile)
{
$this->namespace = $namespace;
$this->menuOptionFile = $menuOptionFile;
}
}