mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
UIBlock: Add hasDataAttributes() method
This commit is contained in:
@@ -502,7 +502,6 @@ abstract class UIBlock implements iUIBlock
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $sName
|
||||
* @param string $sValue
|
||||
@@ -516,6 +515,15 @@ abstract class UIBlock implements iUIBlock
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
* @uses static::$aDataAttributes
|
||||
*/
|
||||
public function HasDataAttributes(): bool
|
||||
{
|
||||
return !empty($this->aDataAttributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user