mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 17:59:21 +02:00
new type API
This commit is contained in:
parent
5d10297448
commit
eaa09a2799
2 changed files with 15 additions and 1 deletions
|
@ -393,7 +393,9 @@ class TypeManager {
|
|||
* @return \LAM\TYPES\ConfiguredType|NULL type
|
||||
*/
|
||||
public function getConfiguredType($typeId) {
|
||||
$configuredTypes = array();
|
||||
if ($this->config == null) {
|
||||
return null;
|
||||
}
|
||||
$activeTypes = $this->config->get_ActiveTypes();
|
||||
if (in_array($typeId, $activeTypes)) {
|
||||
return $this->buildConfiguredType($typeId);
|
||||
|
@ -485,6 +487,15 @@ class TypeManager {
|
|||
return $this->config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if configuration is loaded.
|
||||
*
|
||||
* @return boolean configured
|
||||
*/
|
||||
public function hasConfig() {
|
||||
return !empty($this->config);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue