Cherry pick of PM-3193 to branch 3.0.1.4
This commit is contained in:
committed by
Enrique Ponce De Leon
parent
05ef7afbed
commit
0476ca2bba
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user