mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
Polymorphic type
This commit is contained in:
@@ -76,6 +76,13 @@ class PropertyTypeService
|
||||
return PropertyTypeCompiler::GetInstance()->ListPropertyTypesByType($sType);
|
||||
}
|
||||
|
||||
public function GetPropertyType(string $sId, string $sType = 'Dashlet'): PropertyType
|
||||
{
|
||||
$sXML = PropertyTypeCompiler::GetInstance()->GetXMLContent($sId, $sType);
|
||||
|
||||
return PropertyTypeCompiler::GetInstance()->CompilePropertyTypeFromXML($sXML);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sId
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user