new type API
This commit is contained in:
parent
cbdd69f7f6
commit
294ab941b1
|
@ -115,7 +115,9 @@ class toolFileUpload implements \LAMTool {
|
|||
* @return boolean visible
|
||||
*/
|
||||
function isVisible() {
|
||||
return (sizeof($_SESSION['config']->get_ActiveTypes()) > 0);
|
||||
$typeManager = new \LAM\TYPES\TypeManager();
|
||||
$types = $typeManager->getConfiguredTypes();
|
||||
return (sizeof($types) > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -115,7 +115,9 @@ class toolOUEditor implements \LAMTool {
|
|||
* @return boolean visible
|
||||
*/
|
||||
function isVisible() {
|
||||
return (sizeof($_SESSION['config']->get_ActiveTypes()) > 0);
|
||||
$typeManager = new \LAM\TYPES\TypeManager();
|
||||
$types = $typeManager->getConfiguredTypes();
|
||||
return (sizeof($types) > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -115,7 +115,9 @@ class toolPDFEditor implements \LAMTool {
|
|||
* @return boolean visible
|
||||
*/
|
||||
function isVisible() {
|
||||
return (sizeof($_SESSION['config']->get_ActiveTypes()) > 0);
|
||||
$typeManager = new \LAM\TYPES\TypeManager();
|
||||
$types = $typeManager->getConfiguredTypes();
|
||||
return (sizeof($types) > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -115,7 +115,9 @@ class toolProfileEditor implements \LAMTool {
|
|||
* @return boolean visible
|
||||
*/
|
||||
function isVisible() {
|
||||
return (sizeof($_SESSION['config']->get_ActiveTypes()) > 0);
|
||||
$typeManager = new \LAM\TYPES\TypeManager();
|
||||
$types = $typeManager->getConfiguredTypes();
|
||||
return (sizeof($types) > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -128,7 +128,9 @@ class toolTests implements \LAMTool {
|
|||
* @return boolean visible
|
||||
*/
|
||||
function isVisible() {
|
||||
return (sizeof($_SESSION['config']->get_ActiveTypes()) > 0);
|
||||
$typeManager = new \LAM\TYPES\TypeManager();
|
||||
$types = $typeManager->getConfiguredTypes();
|
||||
return (sizeof($types) > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue