mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-05 09:04:19 +01:00
N°2847 - Add UIBlock::GetBlockCode() method to get the code within a TWIG no matter the object class (easier than calling the right class constant)
This commit is contained in:
@@ -125,6 +125,17 @@ abstract class UIBlock implements iUIBlock
|
||||
return uniqid(static::BLOCK_CODE.'-');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the block code of the object instance
|
||||
*
|
||||
* @see static::BLOCK_CODE
|
||||
* @return string
|
||||
*/
|
||||
public function GetBlockCode()
|
||||
{
|
||||
return static::BLOCK_CODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user